The compounding interest formula is :

where A = future amount
P = initial amount
r = interest rate
n = number of compounding
t = time in years.
From the problem, we have :
P = $1200
r = 2.1% or 0.021
n = 52 (compounded weekly)
a. The customized formula will be :

b. The balance after 30 months.
Convert t = 30 months into years

So t = 2.5 years.
Substitute t = 2.5 :

c. Balance after 5 years.
Substitute t = 5 :

d. The interest gained after 5 years is the difference between the final amount and the initial amount.
That will be :
