Farmer Gopal keeps goats in a square shed. The shed has 8 pens around a yard: 4 corner pens and 4 middle pens, one in the middle of each side. When his wife walks along a side of the shed, she counts the goats in the 3 pens on that side. A corner pen is on two sides.

At first there are 3 goats in every pen.
(i) How many goats does she count along each side? How many goats are there in all? (1 mark)
(ii) Gopal sells 2 goats. Show how he can arrange the other goats so that his wife still counts 9 goats along each side. (1 mark)
(iii) Later Gopal has only 20 goats, and he wants every pen to have at least one goat. Show how he can still get 9 goats along each side. Then explain why he could not do it with 19 goats and no empty pen. (2 marks)

