A certain sum amounts to 798.60 after 3 years and ? 878.46 after 4 years. Find the interest rate and the sum.