From the station, a train traveled due east while another train traveled due north. they traveled the same distance before they reached their next stations. when they stopped, they were 100 miles apart. how far did each train travel?