Goat in field problem

Question

Hints

Answer