How should the frame with current be positioned in a uniform magnetic field so that it is in position: a) stable equilibrium

How should the frame with current be positioned in a uniform magnetic field so that it is in position: a) stable equilibrium; b) unstable balance?

a) that the plane of the frame is perpendicular to the vector of magnetic induction, and the angle between the normal to the surface and the vector of magnetic induction is 0 °; b) so that the plane of the frame is perpendicular to the magnetic induction vector, and the angle between the normal to the surface and the magnetic induction vector is 180 °.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.