The needle has turned 30∘ but the top of the wire has turned 180∘, so the wire is twisted by 180∘−30∘=150∘=65π rad.

In equilibrium the torsional torque balances the magnetic torque, with the needle at 30∘ to the field:
k(65π)=mBsin30∘
B=0.050×0.52.0×10−4×2.618≈2.1×10−2 T
Answer: B≈0.021 T. (A common slip is to use the whole 180∘ as the twist.)