Given that real numbers a and B satisfy (a + b) power + A + B-2 = 0, find the value of a + B

Given that real numbers a and B satisfy (a + b) power + A + B-2 = 0, find the value of a + B

Because (a + b) square + A + B-2 = (a + B + 2) (a + B-1) = 0,
So a + B = - 2, or a + B = 1