12 cupcakes
8 green cupcakes
To find the number of blue cupcakes subtract the green cupcakes (8) to the total cupcakes:
12 -8 = 4 blue cupcakes
To express as a decimal, divide the number of blue cupcakes by the total number of cupcakes:
4/12 = 0.33333