Find the sum of the x values for which g(x) =-2 if you can explain it to that would be great

As shown in the figure
We need to find the value of x when g(x) = -2
so,
By drawing a parallel line to the x - axis and passing through the point ( 0 , -2) and finding the intersection with the function g(x)
See the following image:
so, g(x) = -2 when
[tex]x=-2,3,4[/tex]the sum of the x - values :
[tex]-2+3+4=5[/tex]