Solve for z w=p(y-z)