Divide Rs. 1301 between A and B, so that the amount of A after 7 years is equal to the amount of B after 9 years, the interest being compounded at 4% per annum.