The difference between the compound interest and simple interest on a certain sum at 10% per annum for 2 years is Rs.631. Find the sum.