Forty members of a group are making candles. One member drops out and the rest have to make three more candles each to make up. Each member makes the same number of candles. How many candles do they make altogether.

If each member makes x candles, then

40x = 39(x+3)
x = 117

So now you can find the total.