Fred wants to take out a loan. He can afford to make monthly payments of 500 dollars and wants to pay the loan off after exactly 30 years. What is the maximum amount that Fred can afford to borrow if the bank charges interest at an annual rate of 10 percent, compounded monthly? (Give your answer, in dollars, correct to the nearest dollar.) amount he can borrow: