I was already lookin when Chris answered so I am going to finish my answer too :)
I am going to let the train that is travelling at x km/hour be at point 0
and I am going to let the train that is travelling at -y km/hour be at d
AT any point T in time the trains will be at point xT and d-yT
They will be at the same point when
xT=d-yT
xT+yT=d
T(x+y)=d
T=d/(x+y)
At this point in time the trains will be at dx / (x+y)
It is easier to work out this formula by doing it with the numbers first. 
-------
Using the fromula for you situation
x=5 y=3 and d=100
100*5 / 8
=500/8
= 62.5 km from the x start point
Just as Chris said :))