A ship travels 70 kilometers on a bearing of 27 degrees and then turns on a bearing of 117 degrees for 180 kilometers. Find the distance of the end trip from the starting point.