A uniform conducting wire of length $12a$ and resistance $R$ is wound up as a current carrying coil in the shape of, (i) an equilateral triangle of side $a$. (ii) a square of side $a$. The magnetic dipole moments of the coil in each case respectively are:
A $3Ia^2$ and $Ia^2$
B $3Ia^2$ and $4Ia^2$
C $4Ia^2$ and $3Ia^2$
D $\sqrt{3}Ia^2$ and $3Ia^2$