assuming Y >= 0 and a >= 0 and z >= 0 and b >= 0, Y = -((a - z) (2 b + m (a + z)))/2, solve for z