Solve for z.
w(-4+z)= mz + 17
w(-4 + z) = mz + 17
-4w + wz = mz + 17 (using the distributive law)
wz - mz = 17 + 4w (subtracting mz from both sides; adding 4w to both sides)
(w - m)z = 17 + 4w (factoring)
z = (17 + 4w) / (w - m) (dividing both sides by w - m)