The Lopez family bought 2 adult tickets and 3 child's tickets to the carnival. They spent a total of $23. The Noonan family bought 4 adult tickets and 2 child's tickets. They spent a total of $34. How much did each ticket cost?