Solution:
Step 1 (Set up principals and rates).
Let Ram and Shyam borrow \(\,R\) and \(\,S\) rupees, respectively, from the bank at \(r%\) p.a. (simple interest).
They together lend to Mohan at \((r+2)%\) p.a. (simple interest).
Step 2 (Net gain per person).
For each person, interest received} minus interest paid} each year \(=\) \( (r+2)-r = 2%\) of their own principal.
Over \(4\) years, net gain rate \(= 2%\times 4 = 8%\).
Thus Ram’s gain \(=0.08R\) and Shyam’s gain \(=0.08S\).
Step 3 (Use the gain difference).
Given Ram’s gain exceeds Shyam’s by \(\rupee 400\):
\[
0.08R - 0.08S = 400
\ \
0.08(R-S)=400
\ \
R-S=\frac{400}{0.08}=5000.
\]
\[
{\rupee 5000 \ \text{(Option (c)}}
\]