From a train station, one train heads north, and another heads east. Some time later, the northbound train has traveled 30 kilometers, and the eastbound train has traveled 40 kilometers. How far apart are the two trains, measured in a straight line?