find (a) the compound amount and (b) the compound interest for the given investment and annual rate.

a. $5000 for 20 years at 5% compounded annually
b. $700 for 15 years at 7% compounded semiannually.