An inverse function has this form:
[tex]\begin{gathered} y=\frac{k}{x},\text{ where k is a constant of variation.} \\ In\text{ this case is:} \\ g(n)=\frac{k}{n} \end{gathered}[/tex]We know that g(n) =12 when n=2, so g(2) = 12. Then
[tex]\begin{gathered} g(2)=\frac{k}{2}\text{ = 12} \\ k=12\cdot2 \\ k=24 \end{gathered}[/tex]So the general expression is
[tex]g(n)=\frac{24}{n}[/tex]Then to find the value on n when g(n)=3
[tex]\begin{gathered} g(n)=\frac{24}{n}=3 \\ n=\frac{24}{3} \\ n=8 \end{gathered}[/tex]So the answer is n=8.0