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
![x=-2,3,4](https://img.qammunity.org/2023/formulas/mathematics/college/4fli4hd876u4a0e93r3zxqyeq53hr0j7lt.png)
the sum of the x - values :
![-2+3+4=5](https://img.qammunity.org/2023/formulas/mathematics/college/uormh3kqvxruyy6ietxr91cxxaiiqs2zr6.png)