$\left\{\begin{matrix}f=-\frac{2\left(1-X\right)}{go}\text{, }&o\neq 0\text{ and }g\neq 0\\f\in \mathrm{R}\text{, }&\left(o=0\text{ or }g=0\right)\text{ and }X=1\end{matrix}\right.$
Steps for Solving Linear Equation
The equation is in standard form.
$$gof=2X-2$$
Divide both sides by $og$.
$$\frac{gof}{go}=\frac{2X-2}{go}$$
Dividing by $og$ undoes the multiplication by $og$.