Resistance of the galvanometer coil is given as $G=12 \Omega$
Current for which there is full scale deflection is given as I $=3 \mathrm{~mA}$
To convert a galvanometer to voltmeter,
a resistor with a resistance $R$ is connected in series. The resistance $R$ is given as
$R=(V / I g)-G$
$=\frac{18}{3 \times 10^{-3}}-12=6000-12=5988 \Omega$
By connecting a resistor of $5988 \Omega$, a galvanometer can be converted into a voltmeter