A corner store sells two kinds of baked goods: cakes and pies. A cake costs $5 and a pie costs $7. In one day, the store sold 15 baked goods for a total of $91. How many cakes did they sell?
Write a system of equations representing the problem and solve.

Respuesta :

c+p=15
5c+7p=91

multiply 5 to 1st equation and subtract it from 2nd
multiply 5 to 1st equation to get 5c+5p=75 now subtract this from 2nd equation

thats 2p=16 so
p=8
now we find c from

c+p=15
c=7