If we make

an integer that represents the adults that bought tickets, and

the number of students, then we have the equations

, and

.
Using the second equation, we find that

, so we plug this value of

into the first equation to get

. We simplify to find

. We divide by

to isolate the desired variable to get

.