Answer:
- 12 bags of red onions
- 18 bags of yellow onions
Step-by-step explanation:
Let the number of bags with red onions be x and same of yellow be y.
Each bag has 4x or 6y onions.
According to question we set the following equations.
Total number of bags is 30:
Total number of onions is 156:
We have a system, lets solve it by elimination.
Multiply the first equation by 6 and subtract the second equation:
- 6(x + y) - (4x + 6y) = 30*6 - 156
- 6x - 4x + 6y - 6y = 180 - 156
- 2x = 24
- x = 12
Find the value of y:
- y + 12 = 30
- y = 30 - 12
- y = 18