the answer is
[tex]x = \frac{n - c}{p + 1} [/tex]
Step-by-step explanation:
add x to both sides of the equation
subtract c from both sides of the equation
factor x out of px+x
divide each term by p+1 and simplify and that how you get your answer.