The hypotenuse is always 3 m. Since the angle the rope makes with the horizontal is given, we can use the trig ratios to find the leg lengths of the right triangle formed from the rope, the vertical distance below the mooring point, and the horizontal distance from the quay.
Let V equal the vertical distance of the boat (below its mooring point), H be its horizontal distance from the quay, and L be the length of the rope.
Then sin(64 deg) = V/L and cos(64 deg) = H/L ==> V=L*sin(64) and H=L*cos(64).
For part b, subtract 1.6 from the value of V found in part A and use the Pythagorean theorem to find H.