# How do you solve for x in px+qx=r ?

$x = \frac{r}{p + q}$
$p x + q x = r$
$\rightarrow x \left(p + q\right) = r$
$\rightarrow x = \frac{r}{p + q}$