A person borrowed a certain sum of at 10% p.a. for three year, interest being compounded annually. at the end of the two years, he repaid a sum of Rs. 6634 and at the end of the third year, he cleared of the debt by paying Rs 13200. What was the sumborrowed by him?