500 is the principal for 12 years (i assumed that 13th year only intrest accrued and no princiapal was deposited)
39000 in the way that - for the first year no interest
2nd year - interest on500 @ 12 %
3 rd year- Intt on1000 @ 12%
and so on
Pardon me!! I took the interest @ 12%....