Jill and Mary are selling cheesecakes for a school fundraiser. Customers can buy pecan cheesecakes and apple cheesecakes. Jill sold 6 pecan cheesecakes and 14 apple cheesecakes for a total of $382. Mary sold 3 pecan cheesecakes and 3 apple cheesecakes for a total of $111. Find the cost each of one pecan cheesecake and one apple cheesecake.