Stefan's school is selling tickets to a play. On the first day of ticket sales the school sold 3 adult tickets and 1 child ticket for a total of $38. The school took in $52 on the second day by selling 3 adult tickets and 2 child tickets. Find the price of an adult ticket and the price of a child ticket.​