1) In this question, we can see a literal equation. We need to perform some algebraic manipulations, adding, multiplying, dividing to leave "x" isolated on one side.
2) So, let's do it:
[tex]\begin{gathered} p(x+q)=r \\ \frac{p(x+q)}{p}=\frac{r}{p},(p\ne0) \\ x+q=\frac{r}{p} \\ x+q-q=\frac{r}{p}-q \\ x=\frac{r}{p}-q \end{gathered}[/tex]Note that we started out dividing both sides by p, regarding p ≠0 and then we continued on so that we could have x isolated on the left side.