Since the trains are moving in the same direction, we use relative speed
Step 1: Relative Speed
75−30=45 km/hr
Convert km/hr to m/s:
45×185=12.5 m/s
Step 2: Use Distance = Speed × Time
Time = 108 seconds
Total length of both trains=12.5×108
=1350 m
Step 3: Find length of slow train
Length of slow train=1350−950
=400 m
Length of the slow-moving train = 400 m