David wants to pack 574 cereal bars into bags of 10 and bags of 8 the number of bags of 8 is 2 more than the bags of 10. How many bags of 10 and 8 can david pack the cereal bars into

Respuesta :

Answer: Number of bags of 8. = 33

Number of bags of 10. = 31

Step-by-step explanation:

Let x = Number of bags of 8.

y = Number of bags of 10.

As per given.

[tex]8x+10y= 574 [/tex]   (i)

[tex]x=y+2[/tex] (ii)

Put value of x from (ii) in (i)

[tex]8(y+2)+10y= 574\\\\\Rightarrow\ 8y+16+10y=574\\\\\Rightarrow\ 18y=574-16\\\\\Rightarrow\ 18y=558\\\\\Rightarrow\ y=\dfrac{558}{18}\\\\\Rightarrow\ y=18[/tex]

Put this in (i), x= 31+2=33

Hence,

Number of bags of 8. = 33

Number of bags of 10. = 31