Exercises 9 and 10, write a function that represents the balance after t years.
9. $3000 deposit that earns 6% annual interest compounded quarterly.
10. $5000 deposit that earns 7.2% annual interest compounded monthly.