The Poonces family invested $8,000 in the stock market. How much was their investment worth after 20 years if the average rate of return during this time was 5%, and they invested $400 each year for the 20 year period? Round answer to the nearest dollar.