Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Connect with a community of experts ready to help you find solutions to your questions quickly and accurately. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

Maria and Cody are selling pies for a school fundraiser. Customers can buy cherry pies and lemon meringue pies. Maria sold 4 cherry pies and 2 lemon meringue pies for a total of $96. Cody sold 5 cherry pies and 5 lemon meringue pies for a total of $170. What was the cost of the cherry pie? Write and solve a system of linear equations.

Sagot :

Let cherry pies be represented by c, and let lemon meringue pies be represented by m. This means Maria sold 4c and 2m for a total of 96. Also Cody sold 5c and 5m for a total of 170.

The cost of each item is now calculated by the following system of simultaneous equations;

[tex]\begin{gathered} 4c+2m=96---(1) \\ 5c+5m=170---(2) \\ \text{Multiply equation (1) by 5 and multiply equation (2) by 4} \\ 20c+10m=480---(3) \\ 20c+20m=680---(4) \\ \text{Subtract equation(3) from equation (4)} \\ 10m=200 \\ \text{Divide both sides by 10} \\ m=20 \end{gathered}[/tex]

This means the lemon meringue pies sold for $20 each. We shall now substitute for the value of m = 20 into equation (1);

[tex]\begin{gathered} 4c+2m=96 \\ 4c+2(20)=96 \\ 4c+40=96 \\ \text{Subtract 40 from both sides} \\ 4c=56 \\ \text{Divide both sides by 4} \\ c=14 \end{gathered}[/tex]

Therefore, the cherry pie cost $14 each