Garden hose problem

Question

Hints

Answer