Mr. Ray collected money from tickets sales for the school play during two class blocks. In first block, he collected money for 5 adult tickets and 2 student tickets for a total of $34. In second block he collected money for 3 adult tickets and 2 student tickets for a total of $24. If x represents the cost for each adult ticket and y represents the cost for each student ticket, which systems would help figure out the cost of each type of ticket?