A restaurant with two locations buys twelve bags of flour and eight large bags of sugar. Location A receives seven bags of flour and five bags of sugar for a total cost of $584. Location B receives five bags of flour and three bags of sugar for a total cost of $384. What is the cost of each bag of flour and each bag of sugar?

Respuesta :

You want to solve this set of linear equations by the elimination method.

Let x=price of bag of flour and y=price of bag of sugar

Multiply the first equation by -3.

-3(7x+5y=584)
Multiply the second equation by 5.
5(5x+3y=384)

Solve by elimination.

X=42

Substitute value of x into one of the original equations.

Y=58