Two periods of oscillation of two magnets in the same field are in the ratio of 2:1. If their moment of inertia is equal, the ratio of their magnetic moment is:

(A) 1:2
(B) 1:4
(C) 2:1
(D) 4:1