Scrap metal that contains iron will stick to the magnet, while non-ferrous materials will not.…