AMC 10B 2010 Problem 8

A ticket to a school play costs x dollars, where x is a whole number. A group of 9^{\text {th }} graders buys tickets costing a total of \$ 48, and a group of 10^{\text {th }} graders buys tickets costing a total of \$ 64. How many values for x are possible?

Answer Choices
A. 1
B. 2
C. 3
D. 4
E. 5