Sandra baked 2 dozen cupcakes.

She frosted one half with pink icing.
One eighth she covered with yellow icing.
The rest were chocolate.
How many cupcakes were chocolate?
How did you get the answer

24/2=12 pink
24/8=3 yellow
3+12=15
24-15=9 chocolate

9 chocolate

To find out how many cupcakes were chocolate, we need to subtract the number of cupcakes frosted with pink and yellow icing from the total number of cupcakes.

First, we find out how many cupcakes were frosted with pink icing. Sandra frosted one half of the cupcakes with pink icing. Since there are 24 cupcakes in total, we can divide 24 by 2 to find out how many cupcakes were frosted with pink icing. This gives us 12 pink cupcakes.

Next, we find out how many cupcakes were covered with yellow icing. Sandra covered one-eighth of the cupcakes with yellow icing. Again, using the total number of cupcakes (24), we divide it by 8 to find out how many cupcakes were covered with yellow icing. This gives us 3 yellow cupcakes.

To find out how many cupcakes were chocolate, we add the number of pink and yellow cupcakes together (12 + 3), which gives us 15 cupcakes.

Finally, to find out how many cupcakes were chocolate, we subtract the total number of frosted cupcakes (15) from the total number of cupcakes (24). This gives us 9 chocolate cupcakes.