Answer:
The price of the cake is $24 and the price of the Pie is $15
Explanation:
Given
Represent price of Cake with C and Price of Pie with P

Cakes sold = 8
Pies sold = 14

Required
Determine C and P
To represent the cakes and pies sold, we have the following expression

Substitute 9 + P for C

Open the bracket

Collect Like Terms


Divide both sides by 22


Recall that



Hence, the price of the cake is $24 and the price of the Pie is $15