At a basketball game, 3450 tickets were sold. A student ticket cost $3.00 and an adult ticket cost $5.00. The sum of all the ticket sales was $14,790. How many of each type of ticket were sold?

(The rest of the questions that weren't in word form were written out like:
3x-5y=7
2x+y=9
in a bracket and:
y=-3x-8
y=15-2x
in a bracket and you find x and y)

s + a = 3450

3 s + 5 a = 14790

you need to learn how to set these up