If they both start at the same point then they will get there at the same time, you did not give a starting point so i’m assuming that they both start at the same distance from the destination, if not then which ever train starts closer to the end point will get there first as they are both traveling at the same speed