$$3P= \frac{ 8 }{ 10+Q }$$
$P=\frac{8}{3\left(Q+10\right)}$
$Q\neq -10$
$Q=-10+\frac{8}{3P}$
$P\neq 0$