Final answer:
To find out the cost of each cupcake, subtract the cost of the mug from the total amount paid. Then divide the remaining amount by the number of cupcakes.
Step-by-step explanation:
To find out how much each cupcake costs, we need to subtract the cost of the mug from the total amount paid. The friend paid $29.00 in total, and $12.00 of that was for the mug. So, the remaining $17.00 was spent on drinks and cupcakes.
Since both friends got a medium drink, we can divide the remaining amount by 2 to find the cost of each drink. $17.00 divided by 2 is $8.50. This means each medium drink costs $8.50.
Now, we know that the friends bought 2 cupcakes each, so a total of 4 cupcakes. To find the cost of each cupcake, we can divide the remaining amount by the number of cupcakes. $17.00 divided by 4 is $4.25. Therefore, each cupcake costs $4.25.