5)Initially the emf of the cell(in the bottom circuit) is equal to the potential difference in wire XN so galvanometer shows no deflection.But when the resistance of variable resistor is increased the p.d across variable resistor increases so the p.d across XY decreases.(because total p.d in the(top) circuit remain the same).Now the potential difference across XN is less than the emf of the cell so the movable contact must be move towards the Y to increase the p.d across XN.so when the p.d become equal to emf of the cell the galvanometer again shows zero deflection.
Summarizing,
Initial
Emf of the cell in the bottom circuit=pd across XN.
After increasing resistance of variable resistor,the p.d across XY decreases.
Now p.d across XN is less than before,so the movable contact must be move towards the Y to increase the p.d across XN.