Solve the following problems.
A certain sum amounts to Rs. 2,870 in 2 years and Rs. 3,280 in 3 years at S.I. Find the principal and the rate of interest.