A money lender borrows money at 14% p.a simple interest and pays interest at the end of the year. He lends it at 6% p.a compound interest compounded half-yearly and receives the interest at the end of the year. Thus he gains Rs. 104.50 a year. The amount of money he borrows is