The answer is 2.5 years.
The compound interest formula is:
A = P(1 + r/n)ⁿˣ
A - the final value
P - the initial value
r - the interest rate
n - the number of times interest is compounded by year
t - the numbers of years of investment
We have:
A = $21,000
P = $15,000
r = 15% = 15/100 = 0.15
n = 1 (since this is per year)
t = ?
So:

Now, logarithm both sides of the equation:

Since

, then

Therefore:
