A customer paid a total of 34.00 for 32 cupcakes. Each strawberry cupcake costs 0.8...

Check the final answer first, then review the worked steps.

Answer

20, 12

Work

s + v = 32 \implies s = 32 - v
0.8(32 - v) + 1.5v = 34
25.6 - 0.8v + 1.5v = 34
0.7v = 8.4 \implies v = 12, s = 20

Step-by-step solution

Let $s$ be strawberry and $v$ be vanilla cupcakes. $s+v=32$ and $0.80s + 1.50v = 34.00$. Substituting $s=32-v$ gives $0.80(32-v) + 1.50v = 34$, so $25.6 + 0.7v = 34$, $0.7v = 8.4$, $v = 12$. Then $s = 32 - 12 = 20$.