For this case we propose a system of equations:
x: Variable representing the anticipated tickets
y: Variable representing the same day tickets
So:

We clear x from the first equation:

We substitute in the second equation:

We look for the value of x:

Thus, 20 of anticipated type and 25 of same day type were sold.
Answer:
20 of anticipated type and 25 of same day type were sold.