Amy and Jamexs are selling pies for a school fundraiser. Customers can buy cherry pies and balckberry pies. Amy sold 12 cherry pies and 6 blackberry pies for a total of $126. James sold 4 cherry pies and 13 blackberry pies for a total of $185. Find the cost each of one cherry pie and one blackberry pie.