As per data given in the question,
Let us assume that PQ be the observation tower with heightabove sea level and R be the position of the ship.
Also assume that the distance of the boat from the foot of the observation tower be ‘x’m.
Consider the ΔPQR,
As we know,
Hence, the total distance of the boat from the foot of the observation tower is