The work done by an external agent turning the magnet slowly from θ1 to θ2 is the rise in potential energy:
W=mB(cosθ1−cosθ2),mB=6×0.44=2.64 J
(a)(i) 60∘→90∘:
W=2.64(cos60∘−cos90∘)=2.64×0.5=1.32 J
(a)(ii) 60∘→180∘:
W=2.64(cos60∘−cos180∘)=2.64×1.5=3.96 J

(b) At 180∘: τ=mBsin180∘=0. The magnet is in (unstable) equilibrium.