we have
[tex]-p(d+z)=-2z+59[/tex]
Solve for z
[tex]-p(d+z)=-2z+59\\-pd-pz=-2z+59[/tex]
Group terms that contain the variable z, and move the other terms to the opposite side of the equation
[tex]-pz+2z=59+pd\\z(2-p)=59+pd[/tex]
Divide by [tex](2-p)[/tex] both sides
[tex]z=\frac{(59+pd)}{(2-p)}[/tex]
therefore
the answer is
[tex]z=\frac{(59+pd)}{(2-p)}[/tex]