Aircraft drink problem

Question

Hints

Answer