B.
Homogeneous means one mixture, so like salt water. It looks like one mixture.
Heterogenous means different mixture. Comparable to a bag of Chex mix. So if the magnet can attract the pieces of Iron, it has to be a separable mixture. Compounds would require a chemical reaction to separate.