Let the distance to be reached = x km say.
Time taken to travel ‘x’ km with speed x 40 km/hr = \(\frac x{40}\)hr.
Time taken to travel ‘x’ km with speed 50 km/hr = \(\frac x{50}\) hr.
According to the sum the difference between the times

∴ The required distance to be travelled by a train = 20 kms‘.