Answer:
Step-by-step explanation:
Let be the number of bags with 8 onions and let be the number of bags with 3 onions. We have the following system of equations:
Subtracting from both sides of the first equation, we get . Substitute this into the second equation:
Therefore, the number of 8-onion bags is:
Thus, the chef got 4 8-onion bags and 3 3-onion bags.