Two ships leave port at the same time, one heading due south and the other heading due east. Several hours later they are 170 miles apart. If the ship traveling south traveled 70 miles farther than the ship traveling east, how many miles did each ship travel?