Principal amount lent out by Rakesh (P) = Rs 8000
Time period (T) = 5 years
Rate of interest (R) = 15% p.a.
Interest = = Rs 6000
Principal amount borrowed by Rakesh (P) = Rs 6000
Time period (T) = 3 years
Rate of interest (R) = 12% p.a.
Interest = = Rs 2160
Amount gained by Rakesh = Rs 6000 − Rs 2160 = Rs 3840