HELP NEEDED!!!

A savings account is started with an initial deposit of $500. The account earns 4.5% interest compounded annually.

(a) Write an equation to represent the amount of money in the account as a function of time in years.
(b) Find the amount of time it takes for the account balance to reach $1200. Show your work.