(i) Rs. 16,820 is divided between two persons Mr. X and Mr. Y, 27 and 25 years old respectively; and their money is invested at 5% per annum compound interest in such a way that both receive equal money at the age of 40 years. Find the share of each out of Rs.16,820.