Mensa's "solution"
1/2x24
1/3x18
=
8
z
so
12
6
=
8
z
so
z=4