A train passes two persons walking in opposite directions to the train...
Let the speed of the train be 's' m/s.
Let the length of the train be 'x' meters.
Relative speed of train and the first person who is moving at the speed of 5 m/s in opposite direction = (s+5) m/s.
Therefore, total distance travelled (i.e length of train) 'x'= Relative speed X time
x = (s+5) * 6 …. ( Eq 1)
Relative speed of train and the second person who is moving at the speed of 10 m/s in opposite direction = (s+10) m/s
Therefore, total distance travelled (i.e length of train) 'x' = Relative speed X time
x = (s+10) * 5 …. (Eq 2)
Since length of the train is same in both the cases, if we equate the equation 1 and equation 2 we get
⇒ (s+5) * 6 = (s+10) * 5
⇒ 6s+30= 5s+50
⇒ 6s - 5s = 50 - 30
⇒ s = 20 m/s (i.e speed of the train)
Now, putting the value of speed of the train in equation 1 (we can put the value equation 2 as well) we get
Length of the train 'x' = (20+5) * 6
Therefore, length of the train is 150 meters.