Answer:
It takes 47.19 years
Explanation:
Your amount on the bank is given by the following equation:

In which P(t) is your current amount, P(0) is the initial amount, r is the rate it changes, and t is the time since the money has been put on the bank.
I put $500 in the bank.
This means that

I now have $5000 in the bank.
This means that

Every year my money increased by 5%
This means that

How long that it takes?
This is t.





We use the following logarithms property:

So



It takes 47.19 years