Do you know the formula for computing compound interest? Starting with an initial principal amount P earning an annual interest rate of i%, the balance in the savings account grows by a factor of 1+i every year. Thus after the first year you have P*(1+i), after the second year P*(1+i)*(1+i), etc. After N years, you have:
So, for this problem what you need to do is solve for N:
Do you know how to solve that? If you know how to use logarithms it's pretty simple. Otherwise, another approach is to guess at N until you get the formula to work. Hope this helps.