A man deposits $10,000 at the beginning of each year for 13 years in an account paying 6% compounded annually.

A man deposits $10,000 at the beginning of each year for 13 years in an account paying 6​% compounded annually. He then puts the total amount on deposit in another account paying 7​% compounded semiannually for another 88 years. Find the final amount on deposit after the entire 21​-year period.