The north pole of a bar magnet is placed in turn next to each end of a rod X. One end of the rod moves away from the north pole but the other end moves towards the north pole. The experiment is repeated with the bar magnet and a different rod Y but this time both ends of the rod move towards the north pole. From which materials could the rods X and Y be made?