Sameer makes two electromagnets, X and Y, and hangs each from a thread so that end P of X faces end Q of Y.

First he tests each one alone with a compass. End P attracts the south end of the compass needle. End Q also attracts the south end of the compass needle. Then he switches ON both electromagnets together. What will happen to the two hanging electromagnets?
