Plug it into a graphing calculator, I used Desmos.
The graph is the same as x=-2 and y=-4. All I did was replace g(x) with y since y is the output function and so is g(x), then I just added the whole expression as follows and it graphed it for me.
The bottom graph to the left is the answer.
I hope this helps!
~kaikers