Answer:
Below 
Explanation:
First let us create an equation for this problem 
 (24 cupcakes)( $ of each cupcake) + ( $16 layer cake ) = $52 
Let's say that C will represent the $ of each cupcake to make it easier 
Solving it.... 
 24C + 16 = 52 
 24C = 36 
Divide both sides by 24 
 C = 1.5 
Therefore, each cupcake cost $1.5 
We can check to see if this works.... 
 24(1.5) + 16 = total cost 
 36 + 16 = 52, so this is correct 
Hope that helped! Best of luck <3