The formula for compounded interest is
We have
P = 4000
r = 12% = 0.12
t = time in years
Therefore
a)
Now let's evaluate that function at t = 1
Therefore at the end of 1 year, he would have $4480
b)
Now let's do it for t = 2, we have
At the end of 2 years, he would have $5017.6