A group of 8 people spent $78 to go to the movies. Adult tickets cost $10 each and student tickets cost $8 each. How many adult tickets were purchased.

if there were a adults, then the rest (8-a) were students. So, adding up the prices,

10a + 8(8-a) = 78