Money Money!Algebra Level 3
A person goes to a temple with some amount in his pocket, when he gets there, his amount doubled. He gives \(Rs 16\) to a beggar from his doubled amount.
Then he goes to the second temple, there the remaining of his amount doubles again. He again \(Rs 16\) to a beggar. He goes to two more temples and does the same thing. After giving \(Rs 16\) to the beggar in the fourth temple he is left with no money.
So, how much money did he have in his pocket initially before arrived to the first temple?