Answer
$n=\dfrac{p}{a+r}$
Work Step by Step
Using the properties of equality, in terms of $
n
$, the given equation, $
an=p-rn
$, is equivalent to
\begin{array}{l}\require{cancel}
an+rn=p
\\\\
n(a+r)=p
\\\\
n=\dfrac{p}{a+r}
.\end{array}