There were 292 tickets sold for a high school basketball game. An adult ticket cost $3. A student ticket cost $1. Ticket sales were $470. Write a system of equations and solve to find the number of each type of ticket sold.