Answer:
Solution given;
let the amount given to James be x.
and to Sophie be 10,000-x.
now
for James
rate (r)=12%
time (t)=2 years
principal (p)=x
Simple interest=

again
for Sophie
principal (p)=Rs 10,000-x
rate=9%
time(t)=2years
Compound interest=
![P[(1+(r)/(100))^(t)-1]](https://img.qammunity.org/2022/formulas/mathematics/high-school/avf2231p4568uxzf09h86r67whl8jdli5l.png)
=
![(10,000-x)[(1+(9)/(100))^2-1]](https://img.qammunity.org/2022/formulas/mathematics/high-school/ey74h7r6owqjzx5qo77w1rhfwoh1pu05e8.png)
=
![(10,000-x)[1.1881-1]](https://img.qammunity.org/2022/formulas/mathematics/high-school/2lqu977mwhlzfw36t3bms3qs8mj8pt8gts.png)
=10,000*0.1881-0.1881x
=1881-0.1881x
Since
Sophie paid Rs 596.70 more than James as the interest
so
James interest +Rs596.70=Sophie's interest
0.24x+596.70=1881-0.1881x
0.24x+0.1881x=1881-596.70
0.4281x=1284.3
x=

now
10,000-x=10,000-3000=Rs7000
He lended Rs 3000 to James
and
Rs 7000 to Sophie.
l