A train passes two persons walking in the same direction as the train. The time it takes to move past the man running at 6km/h is 18sec, whereas the time it takes to cross the other man running at 8km/h is 19sec. What is the speed of the train?
Let the speed of the train be v km/h. Length of the train calculated with the data for the first man = $(v - 6) × 18$. It should equal the length obtained from the data for the second man. So $(v - 6) × 18$ = $(v - 8) × 19$. Please note that we have not converted seconds to hours because that factor will ultimately cancel away. Solving for v we get 44km/h.