A buys an annuity that pays 5 at the end of each year, for 18 years, at an annual interest rate i. For the same price, B buys an annuity that pays 4, at the end of each year, for 36 years, at annual interest rate i. C makes an investment at the same annual effective rate i and doubles his money in n years. Determine n.