After 5 hours, the northbound train is
(30 mph) (5 h) = 150 mi
north of the station, while the eastbound train is
(40 mph) (5 h) = 200 mi
east of the station.
The distance between the trains is the length of the hypotenuse in the right triangle formed by the trains' paths. By the Pythagorean theorem, this distance is
