Let A be the number of advance tickets sold and S be the total number of same-day tickets sold. The total amount of tickets is A+S, then:

The total earnings for A advanced tickets is 30A, while the total earnings for selling S same-day tickets is 20S. Then, the total amount of money for selling A advanced tickets and S same-day tickets, is 30A+20S, then:

Solve the system of equations to find the total amount of tickets of each type that were sold. To do so, isolate A from the first equation and then substitute the resulting expression in the second one:


Solve for S:

Substitute S=20 into the expression for A:

Then, the solution for this system is:
