24
A student has a bar magnet and two metal blocks.
The student places the bar magnet next to end W and end X of metal block 1.
The student then places the bar magnet next to end Y and end Z of metal block 2.
The diagram shows which ends of the metal blocks are attracted or repelled by the bar magnet.

Which metal blocks are bar magnets?