The north pole of the permanent magnet will repel the north pole of the loop electromagnet and attract the south pole.
(The north pole of the permanent magnet; will repel; the north pole of the loop electromagnet) (The north pole of the permanent magnet; attract; the south pole)
The north pole of the permanent magnet The north pole of the permanent magnet
will repel attract
the north pole of the loop electromagnet
the south pole