Which of the following best describes magnetism?
A) A force that causes attraction or repulsion between objects due to their electric charges
B) A phenomenon by which certain materials produce a force that attracts or repels other materials, typically iron, due to their magnetic fields
C) A process where energy is emitted or absorbed in the form of electromagnetic waves
D) A type of chemical reaction that involves the exchange of electrons between substances