Mel Ting sells half-gallons of frozen yogurt for $5 each and gallons for $9 each. One day Mel sells a total of 40 containers of yogurt, for a total of $248. How many of each kind of container did Mel sell?

Respuesta :

Answer:

Number of half-gallons containers of frozen yogurt = 28

Number of containers containing 1 gallon of frozen yogurt = 12

Step-by-step explanation:

Let [tex]x[/tex] denotes number of half-gallons containers of frozen yogurt and [tex]y[/tex] denotes number of containers containing 1 gallon of frozen yogurt.

[tex]x+y=40\,\,\,...(i)\\5x+9y=248\,\,\,...(ii)[/tex]

Multiply (i) by 5

[tex]5x+5y=200\,\,\,...(iii)[/tex]

Subtract (iii) from (ii)

[tex](5x+9y)-(5x+5y)=248-200\\5x+9y-5x-5y=48\\4y=48[/tex]

[tex]y=\frac{48}{4}=12[/tex]

Put [tex]y=12[/tex] in (i)

[tex]x+12=40\\x=40-12\\x=28[/tex]