We need to find the length of the tunnel L given that train A (length l) takes 35 s less than train B (length 4l) to cross the tunnel.
Convert velocities to m/s:
vA=108 km/h=108×185=30 m/s
vB=72 km/h=72×185=20 m/s
Time for a train to cross a tunnel = (length of train + length of tunnel) / speed of train.
tA=30L+l
tB=20L+4l
Given tB−tA=35 s:
20L+4l−30L+l=35
Taking LCM of 20 and 30 = 60:
603(L+4l)−2(L+l)=35
603L+12l−2L−2l=35
60L+10l=35
L+10l=2100
Given L=60l, so l=60L:
L+10×60L=2100
L+6L=2100
67L=2100
L=72100×6=1800 m
The length of the tunnel is 1800 m.