A cruise ship travels 300 miles due east before turning 30° north of east. It travels 175 miles along its new course. How far is the cruise ship from its initial position?

draw a diagram and use the law of cosines.