John took out a loan of $1,200 with an annual interest rate of 5% that compounds yearly. If he plans to repay the loan in 3 years, what will be the total amount he needs to repay at the end of the 3 years, and how much interest will he have paid in total? Let's think step by step and output the final answer within \boxed{}.
user