Let the the amounts invested at 10% and 8% be ₹x and ₹y respectively.
Then as per the question
After the amounts interchanged but the rate being the same, we have
Adding (i) and (ii) and dividing by 9, we get
Subtracting (ii) from (i), we get
Now, adding (iii) and (iv), we have
Putting x = 8500 in (iii), we get
Hence, the amounts invested are ₹8,500 at 10% and ₹6,250 at 8%.