A rectangular loop of sides 10 cm and 5 cm carrying a current I of 12 A is placed in different orientations as shown in the figure below : If there is a uniform magnetic field of $0.3\;T$ in the positive z direction , in which orientation the loop would be in (i) stable equilibrium and (ii) unstable equilibrium ?