Tom baked some cupcakes. If he gave each of his friends 5 cupcakes, he would have 25 cupcakes left. If he gave each of his friends 9 cupcakes, he would need to bake another 35 more cupcakes. How many cupcakes did Tom bake?
Call the nymber of friends he has, x
5x + 25 = the total number of cupcakes he had before baking the additional ones
Giving his friends 9 cupcakes apiece would result in this equation
5x + 25 + 35 = 9x
5x + 60 = 9x
60 = 9x - 5x
60 = 4x
60 / 4 = x = 15 friends
The number he has baked = 5 *x + 25 = 5(15) + 25 = 100
Proof
If he bakes 35 more he has 135
And each friend would receive 135 / 15 = 9