John has 5 boxes of sweets. One group of boxes has 5 sweets in each box. The second group of boxes has 4 sweets in each box. John has a total of 22 sweets. How many boxes of each type John has?

Respuesta :

Answer:

3 boxes with 4 sweets and 2 boxes with 5 sweets

Step-by-step explanation:

  • Boxes with 4 sweets= x
  • Boxes with 5 sweets= y

As per given, we have following equations:

  • x + y = 5
  • 4x + 5y = 22

x= 5- y as per the first equation, considering in second one:

  • 4(5 - y) + 5y = 22
  • 20 - 4y + 5y = 22
  • y =2

Then:

  • x= 5 - y = 5 - 2= 3

So there 3 boxes with 4 sweets and 2 boxes with 5 sweets