If you could help me in any way it would be great!!! I accidently typed the wrong question!(I sometimes wonder how I got into this maths class=])

this is the right question:

A boat travels 6.3km due north and then turns 17degrees towards the west and travels a further 7.2kms. How far is it from it's initial position?(Headbang)

x^2=6.3^2+7.2^2-2(6.3)(7.2)cos17

x^2=91.53-90.72Xcos17

x^2=91.53-86.76

x^2=4.77

x=2.18(Angry)

any help would be great! Thank you for taking the time to help me with my trig h/w!!