# How do you solve for x in p(x-1)+7=r(x-4)?

Feb 22, 2016

$x = \frac{- 4 r - 7 + p}{p - r}$

#### Explanation:

$p \left(x - 1\right) + 7 = r \left(x - 4\right)$

$p \left(x\right) + p \times \left(- 1\right) + 7 = r \left(x\right) + r \times \left(- 4\right)$

$p x - p + 7 = r x - 4 r$

$p x - r x = - 4 r - 7 + p$

$x \left(p - r\right) = - 4 r - 7 + p$

$x = \frac{- 4 r - 7 + p}{p - r}$