A person lends $2000 for five years at 10% per annum simple interest; then the entire proceeds are an investment for 10 years at 9% per year, compounded annually. How much money will the person have at the end of the entire 15-year period?