Compound interest formula is

Where P is the principal amount
r is the rate of interest
t is number of years
Brian invests $10,000 in an account earning 4% interest, compounded annually for 10 years
P = 10,000 , r= 4% = 0.04 , t =10
Plug in all the values
= 14,802.44
Chris invests $10,000 in an account earning 7% interest, compounded annually for 5 years.
P = 10,000 , r= 7% = 0.07 , t =5
Plug in all the values
= 14,025.52
Brian balance after the interest period = $ 14,802.44
Chris balance after the interest period = $ 14,025.52
Balance in Brian's account is more than Chris account