Mahesh borrowed a certain sum for two years at simple interest from Bhim. Mahesh lent this sum to Vishnu at the same rate for two years compound interest. At the end of two years, Mahesh received Rs. 410 as compound interest but paid Rs. 400 as simple interest. Find the sum and rate of interest.