(i) The person on the shore hears the first direct sound after 2 s from the observer.
.'. Distance between observer on ship and man on shore.
(ii) Let the distance between the cliff and the observer be d metre.
Therefore, the second sound heard by the man on the shore travels a total distance of