On a certain sum of money, the difference between the C.I. for a year payable half yearly and the S.I. for a year is Rs.180. Find the sum lent out, if the rate in both the cases is 10%.