Throw brick out of boat problem

Question

Hints

Answer