Two cars leave the same parking lot, with one heading north and the other heading east. After several minutes, the eastbound car has traveled 4 miles. If the two cars are now a straight-line distance of 5 miles apart, how far has the northbound car traveled?