Sameer hangs two electromagnets, X and Y, from threads so that end P of X faces end Q of Y. Each has its own cell. When both are switched ON, X and Y move towards each other.

Step 1: Sameer reverses the connections of the cell of Y only.
Step 2: He then also reverses the connections of the cell of X.
What will X and Y do after Step 1 and after Step 2?
