The drama club sold bags of candy and cookies to raise money for the spring show. Bags of candy cost $5.50 and bags of cookies cost $3.50, and the sales total was $53.50. There were 5 more bags of cookies sold than candy. Find the number of bags of candy and cookies sold by the drama club.

Respuesta :

Let's assume

the number of bags of candy =x

the number of bags of cookies =y

There were 5 more bags of cookies sold than candy

so, we get

[tex]y=x+5[/tex]

Bags of candy cost $5.50

so, total cost of candy is

[tex]=5.50x[/tex]

bags of cookies cost $3.50

so, total cost of cookies is

[tex]=3.50y[/tex]

so,

total cost = (total cost of candy)+(total cost of cookies)

we get

total cost =5.50x+3.50y

so, we can plug

[tex]5.50x+3.50y=53.50[/tex]

now, we can plug y

[tex]5.50x+3.50(x+5)=53.50[/tex]

[tex]5.5x\cdot \:10+3.5\left(x+5\right)\cdot \:10=53.5\cdot \:10[/tex]

[tex]55x+35\left(x+5\right)=535[/tex]

[tex]55x+35x+175=535[/tex]

[tex]90x+175=535[/tex]

[tex]90x+175-175=535-175[/tex]

[tex]90x=360[/tex]

[tex]x=4[/tex]

now, we can find y

[tex]y=x+5[/tex]

[tex]y=4+5[/tex]

[tex]y=9[/tex]

so,

the number of bags of candy =4

the number of bags of cookies =9............Answer