At a movie adults pay $4 and children pay $2.50. The cashier collected $300 for 99 tickets. How many adults and how many children attended the movie?

number of adult tickets --- x

number of children tickets -- 99-x

4x + 2.5(99-x) = 300

solve for x