Worked solution from the Group 2 MCQ booklet.
V has pH 13.6, which is strongly alkaline. W has pH 9.4, which is weakly alkaline.
Sulfates of Mg and Ba, MgSO4 and BaSO4, are not alkaline, so A and B can be ruled out.
Ba(OH)2 is much more soluble than Mg(OH)2, so it gives a much higher pH. Ba(OH)2 fits V (13.6) and Mg(OH)2 fits W (9.4).
So the answer is C.
A and B are sulfates, which would be close to neutral. D has the metals the wrong way round.
▶ Whole paper
Video solution of the whole paper · by ChemBridge. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.