Ajay borrows Rs.1500 from two money-lenders. He pays interest at the rate of 12% per annum for one loan and at the rate of 14% per annum for the other. The total interest he pays for the entire year is Rs. 186. How much does he borrow at the rate of 12%?