若实数xy满足(x+y+2)(x+y-1)=0,则x+y的值是