Since the $5000 are the initial quantity when t = 0, we have the following exponential model:
then, if we make t =0,1,2,3,4,5,6, we get the following table:
next, for the investment after 10 and 20 years, we have to make t = 10 and t = 20:
therefore, the total money of the investment after 10 years is $9835.76 and after 20 years is $19348.42