Problema Solution

A local gift shop sold bags of candy and cookies for Halloween. Bags of candy cost $7.00, and bags of cookies cost $2.50, and sales equaled $31.50 in total. There were 5 more bags of cookies than candy sold.

Find the number of bags of candy and cookies sold by the gift shop.

Answer provided by our tutors

let


x = the number of bags of candy


y = the number of bags of cookies


Bags of candy cost $7.00, and bags of cookies cost $2.50, and sales equaled $31.50 in total:


7x + 2.50y = 31.50


There were 5 more bags of cookies than candy sold:


y = x + 5


by solving the system of equations:


7x + 2.50y = 31.50


y = x + 5


we find:


x = 2 bags of candy


y = 7 bags of cookies


click here to see the step by step solution of the system of equations:


Click to see all the steps



there were 2 bags of candy and 7 bags of cookies sold.