$gf=4f-6gf-3g$
$gf-4f+6gf=-3g$
$\left( g-4+6g \right)f=-3g$
$\begin{array} { l }f=\frac{ -3g }{ g-4+6g },& g-4+6g≠0\end{array}$
$\begin{array} { l }f=\frac{ -3g }{ g-4+6g },& g≠\frac{ 4 }{ 7 }\end{array}$
$\begin{array} { l }f=\frac{ -3g }{ 7g-4 },& g≠\frac{ 4 }{ 7 }\end{array}$