$$ \begin{aligned} 2p+4+5(p-1)-(p+7) &= 0&& \text{simplify left side} \\[1 em]2p+4+5p-5-(p+7) &= 0&& \\[1 em]7p-1-(p+7) &= 0&& \\[1 em]7p-1-p-7 &= 0&& \\[1 em]6p-8 &= 0&& \text{ move the constants to the right } \\[1 em]6p &= 8&& \text{ divide both sides by $ 6 $ } \\[1 em]p &= \frac{8}{6}&& \\[1 em]p &= \frac{4}{3}&& \\[1 em] \end{aligned} $$
This page was created using
Polynomial Equations Solver