The speed of an object is the scalar quantity that is defined as the rate of change of distance covered by the object in unit time.
Given data.
The speed of the trains is .
The distance between the trains is 8.5 km.
Assumption.
Assume that after time t, both the trains reach each other.
Assume that the first train travels , and the second train travels distance before reach each other.
Now, the speed of the train is
Now, the distance between the trains is
For the first train, .
For the second train, .