
In adjoining fig. let C represents the position of the man on the deck of the ship, A represents the top of hill and D its base. Now in right-angled triangle CWD,

Also, in right-angled triangle ABC we have,

Now, AD = AB + BD = 30 m + 10 m = 40 m.
Therefore, the distance of the hill from the ship = 17.3 m and the height of the hill = 40 m