I'm not 100% sure but base on my solution I used the tangent because you are looking for the adjacent side or the distance of the boat from the cliff's foot.
Given: h= 125m, Angle dep. = 20.7 degrees
tan teta= 125tan20.7
= 47.23 m far from the foot of the cliff.