Let 1u be the number of neighbours.
The idea
2each 4each
1u x 2 1u x 4
-----------------
1 : 1
+9 -4
. 2u 9
. / \ / \ 5
2each |-------------|---------|/ \
4each |-----------------------|-----|
. \ /
. 4u
4u - 2u = 2u
2u = 9+5 = 14
(a) No. of neighbours --> 1u = 14/2 = 7
(b) No. of curry puffs --> 4x7 - 5 = 28 - 5 = 23
Or
2x7 + 9 = 14 + 9 = 23