$$yp=2yx+logg$$
$g=10^{y\left(p-2x\right)}$
$\left\{\begin{matrix}p=\frac{\log(g)}{y}+2x\text{, }&y\neq 0\text{ and }g>0\\p\in \mathrm{R}\text{, }&y=0\text{ and }g=1\end{matrix}\right.$