
Length of the train = 180 meters
Speed of the train = 42 km/h
Speed of the person = 6 km/h
Both are moving in the same direction
—
✅ Step 1: Find relative speed
Since both are moving in the same direction, subtract their speeds:
Relative speed = 42 km/h – 6 km/h = 36 km/h
Now convert km/h to m/s:
36 × (1000 ÷ 3600) = 10 m/s
—
✅ Step 2: Use the formula
Time = Distance ÷ Speed
= 180 m ÷ 10 m/s = 18 seconds
—
✅ Final Answer: The train will take 18 seconds to pass the person.