-1
You apparently want to find the value of x such that ...
... x + 5 -(-2) = 6 . . . . . . the problem statement
... x + 5 + 2 = 6 . . . . . . . simplify signs
... x +7 = 6 . . . . . . . . . . . perform the addition
... x = 6 -7 = -1 . . . . . . . subtract 7 from both sides of the equation, evaluate
-1 adds to 5 - (-2) to give the result 6.