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

Let's think step by step and output the final answer within \boxed{}.
user