Hi, The answer assuming I'm looking at the right mensa question is to put the information into equations like this:-
1. 2x+2y=58
2.c+2z+y=69
3.3y+z=71
then using simutaneous equations you substitute
from 1. above y=29-x making y the subject
now using 3.
3(29-x)+z=71 giving z=-16+3x
now using 2. x+2(-16+3x)+(29-x)=69
you get x=12