A sum of money amounts to Rs. 6690 after 3 years and Rs.10,035 after 6 years on compound interest. The sum is :