Scott and Gabriella are selling pies for a school fundraiser. Customers can buy cherry pies and pumpkin pies. Scott sold 7 cherry pies and 8 pumpkin pies for a total of $263. Gabriella sold 12 cherry pies and 4 pumpkin pies for a total of $276. Find the cost each of one cherry pie and one pumpkin pie.