Mrs. Cazares went shopping for candy for her students. She bought 6 bags of candy. She had a coupon for $6 off her purchase. If she spent a total of $36, how much was each bag of candy?