Answer:
(1)
(2)
From equation (1) we can solve for x and we got:
(3)
Replacing (3) into (2) we got:
And solving for y we got:
And then solving for x we got:
So then we have 8 donuts and 22 cupcakes
Explanation:
Let x the number of donuts and y the number of cupcakes, from the info given we can set up the following equations:
(1)
(2)
From equation (1) we can solve for x and we got:
(3)
Replacing (3) into (2) we got:
And solving for y we got:
And then solving for x we got:
So then we have 8 donuts and 22 cupcakes