X+6 ~ 5 = -2

I'm not sure what the ~ means. I will assume it is a typo for a negative sign (-).

X + 6 - 5 = -2

x + 1 = -2

X = -3