Table[solve -10 = (x)^2 - 2m*(x) + m + 2, {x, -2, 5,7}]