2x+ 7 = -5 implies x = -6 since this is less than -2 it is a valid solution
-x^2 - x + 1 = -5 can be written as x^2 + x - 6 = 0 which factors as (x-2)(x+3)=0 for which the only solution that is greater than or equal to -2 is x = 2.
Hence the sum of the valid values of x is -6 + 2 = -4