step: the mixture of iron fillings and black pepper is a mixture of magnetic and nonmagnetic material & magnet can be used for separating a magnetic material from a mixture of a magnetic and nonmagnetic material
inference: magnet can be used to separate a mixture of iron fillings and black pepper