We calculate simple interest for both A and B separately, then add.
A’s Simple Interest
SI=100P×R×T
=10089500×7×3
=89500×0.21=18795
So, A pays = ₹18,795
B’s Simple Interest
B has different rates each year, so calculate year-wise:
Year 1 (9%)
89500×1009=8055
Year 2 (8%)
89500×1008=7160
Year 3 (7%)
89500×1007=6265
Total for B:
8055+7160+6265=21480
So, B pays = ₹21,480
Total Interest (A + B)
18795+21480=40275
Final Answer: ₹40,275