Question 873869
Let C be the total cost in n years, then
C = 20(1 + 0.05)^n
Note that this equation comes from the following formula
A = P(1 + r/n)^nt, A is accumulated amount, P is principle, r is rate, n is number of compounds per year, t is number of years