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