Let the speed of faster train be x km/h.
Then, the speed of slower train is (x − 10) km/h.
Given:
A faster train takes one hour less than a slower train for a journey of 200 km.
Time taken by faster train to cover 200 km = h
Time taken by slower train to cover 200 km = h
According to the question,
and x − 10 = 40
Hence, the speed of fast train is 50 km/h and the speed of slow train is 40 km/h.