Charles Wilson borrowed $31,700 on July 1, 2022. This amount plus accrued interest at 5% compounded annually is to be repaid on July 1,2027. How much will Charles have to repay on July 1, 2027?
a) $39,092.50
b) $40,604.25
c) $50,000
d) $43,415