A physics laboratory apparatus is set up with two bar magnets mounted on a vertical guide track as shown below. Magnet Q is fixed firmly in place at the base, while Magnet P is free to slide vertically up and down with negligible friction.

State what would happen to Magnet P if it is released from rest from the position shown.