Let
x -----> number of $10 tickets sold
y -----> number of $20 tickets sold
z -----> number of $30 tickets sold
we have that
x+y+z=3138 -------> equation A
10x+20y+30z=59060 -------> equation B
y=x+160 -----> equation C
Solve the system
using a 3x3 system of equations solver
x=1,116
y=1,276
z=746
therefore
number of $10 tickets sold was 1,116
number of $20 tickets sold was 1,276
number of $30 tickets sold was 746