Figure 1 shows a physics classroom demonstration where two identical ring magnets are threaded onto a vertical wooden rod. Magnet B (the upper magnet) floats in the air above Magnet A (the lower magnet).

Describe the forces acting on Magnet B.
Use the idea of magnetic fields in your answer.