Materials that have the property of attracting or repelling objects such as cobalt, nickel, or iron and those made of…