Answer: 15 vanilla and 6 mint
Explanation:
You would solve for x and get x=21-y and then plug that into the next equation and get 2(21-y)+4y = 54.
You would then solve for y.
42-2y + 4y = 54
42+2y =54
Then subtract 42 from both sides.
2y = 12, and then divide by 2.
You get y=6.
Then we know we sold 21 cupcakes so
21-6=x
15=x