Let x be the amount he started with
So....he first spends 1/5 of this = (1/5)x
So....what's left = (4/5)x
And he spends (1/5) of this = (1/5)(4/5)x = (4/25)x
So he spends (1/5)x + (4/25)x and this = $36.......so we have
(1/5)x + (4/25)x = 36
(5/25)x + (4/25)x = 36
(9/25)x = 36 multiply both sides by 25/9
x =36 (25/9)
x = (36/9) * 25
x = 4 * 25 = $100 and this is what he started with
Proof......he spends 1/5 of $100 = $ 20
Then....he spends 1/5 of what's left = (1/5)($80) = $16
And $20 + $16 = $36
