Errol loaned Marvin some money at the rate of 7% interests per year when Marvin paid back the loan at the end of three years, he had to pay a P12,000 interest. How much money did he borrow?