The bake sale sold pies for $5.99 each and cakes for $9.99 each. The total number of pies and cakes sold was 25 for $189.75. How many pies were sold? How many cakes were sold?

Answer :

Answer:

15 pies sold and 10 cakes sold.

Step-by-step explanation:

Let p be the number of pies sold.  So, the number of cakes sold is 25-p.

5.99p + 9.99(25-p) = 189.75

5.99p + 249.75 - 9.99p = 189.75

4p = 60

p = 15

25 - p = 10