the goat and the grass math problem