JMC 2012 Q18
18. The numbers 2, 3, 4, 5, 6, 7, 8 are to be placed, one per square, in the diagram shown such that the four numbers in the horizontal row add up to 21 and the four numbers in the vertical column also add up to 21.
Which number should replace \(x\) ?
- A 2
- B 3
- C 5
- D 7
- E 8

Junior Mathematical Challenge 2012, Question 18. © UK Mathematics Trust. Original paper on ukmt.org.uk
Answer: D 7
Note that the number which replaces \(x\) appears in both the row and the column. Adding the numbers in the row and the column gives \(2 + 3 + 4 + 5 + 6 + 7 + 8 + x = 2 \times 21 = 42\).
So \(35 + x = 42\) and hence \(x = 7\). The diagram shows one way in which the task may be accomplished.

Solution © UK Mathematics Trust, from the JMC 2012 solutions. Longer versions with investigations: Solutions and investigations (PDF).