Answer
$i=-8.7cm$
Work Step by Step
Since the lens is diverging, the focal length is negative (f=-31cm). Use the lens equation $$\frac{1}{f}=\frac{1}{i}+\frac{1}{p}$$ to solve for $i$. $$\frac{1}{i}=\frac{p}{pf}-\frac{f}{pf}$$ $$\frac{1}{i}=\frac{p-f}{pf}$$ $$i=\frac{pf}{p-f}$$ Substituting values of $f=-31cm$ and $p=12cm$ yields an image distance of $$i=\frac{(12cm)(-31cm)}{12cm+31cm}=-8.7cm$$