A train overtakes two persons walking along a railway track. The first one walks at 4.5 km/hr. The other one walks at 5.4 km/hr. The train needs 8.4 and 8.5 seconds, respectively, to overtake them. What is the speed of the train if both the persons are walking in the same direction as the train?