Certain metals and metallic oxides have the ability to attract other metals. This property is called magnetism, and the materials…