Varun borrowed some money from karan at 12% p.a simple interest. He then added an amount and lent the total to charan at 18% p.a. simple interest. At the end the year, Varun gained rs672. If Varun lent rs8000 to charan, then how much did varun borrow from karan?