Two short magnets of equal dipole moment M are fastened from ends at an angle 120∘ as given in the figure. One of the magnet is perpendicular to the direction of magnetic field B. Find the required work to rotate the magnet such that both magnets make equal angles with the magnetic field ?