Let be equal to the time it takes to be heard by the sonar.

We then have that the time for it to be heard on deck is .

Therefore:

And since the distances are equal:

Now solve for to get:

Now just plug that into the equation to get:

feet