Solve for z -p*(d+z)=-2z+59