A theater charges x for adult tickets and y for child tickets. Two adult tickets and 4 child tickets cost $48. Five adult tickets and 2 child tickets cost $64. Write and solve a system of equations to find the adult and child ticket prices.