The first thing you should know for this problem is the definition of speed.Speed is defined as the quotient between distance and time.
 v = d / t.
 Substituting the values, we have:
 v = (100 + 400) / (30) = 16.67 m / s
 answer
 the train going at 16.67 m / s