Andy took out a 5 year loan at 12% interest rate to pay for a trip to Spain. If he ended up paying $4937.50 in interest, how much was the trip?