On Saturday barkers bake sale sold 8 cakes and 12 pies, making a total of $164. On Sunday they sold 10 cakes and 4 pies, earning $128.

What is the price of cake?
What is the price of pie?

1 answer

10C+4P=128
8C+12P=164

multipy top equation by 3
30C+12P=384
8C+ 12P=164
subtract eq 2 from 1
22C=220
C=10 dollars pre cake
then solve for P, the pie cost.