A merchant has 30,000 rupees to lend on loan. He lent some of his capital to Mohan at an interest rate of 20% per annum and the rest to Suresh who convinced him to lend the money at the interest rate of 12% per annum. After the completion of one year, the merchant got 17% of his capital as interest. How much did he lend to Mohan?