John had some money. He spent 25% of it on books and 1/5 of the remaining amount on a bag. He had $240 left. How much money did he have at first?
Let x be his original amount of money.
After spending 25%, he still has 75%, or (3/4)x.
1/5 of the remaining = still having 4/5
(3/4)x*(4/5) = 240
(3/5)x = 240
x = 400.
x - x/4 - 1/5(3x/4) = 240
x = 400