Hello, I am given two graphics, F(x), G(x) and I am supposed to graph g(f(x))

I am a bit rusty with composite functions, so I was hoping someone could give me some general information on how to do this? From what I recall, you need to take the range of f(x) and input it as the domain of g(x)? I know both functions domains must be satisfied. It looks like f(x) D = [-3,3] R = [-1,3] and g(x) D = [-3,3] R = [-2, 2]

I hope this made sense, thank you