Amit invested an equal sum of money at both simple interest and compound interest, compounded annually. The time period for each investment was 2 years, and the rate of interest was the same at 5% per annum. At the end of 2 years, he noticed a difference of ₹89 between the two interests earned. What was the sum invested (in ₹) at compound interest?