This might be wrong, but you need to get x be itself on the left side and then after you do that, the x on both sides will cancel. Whenever you try to subtract one x from the other it will cancel them. So technically that's all you can do.
Distribute -pd-pz=-2z+59 add 2z both sides -pd-pz+2z=59 add pd to both sides -pz+2z=59+pd 2z-pz=59+pd undistribute z z(2-p)=59-pd divide bot sides by 2-p