This is what I got:
Blue: $g(x)$
Red: $f(x)$
Yellow: $(g\circ f)(x)$
Green: $(f\circ g)(x)$
Your answer is correct.
Blue line for f(x) = 2x - 6
Pink for g(x) = x + 3
Green for fog(x) = 2x
Yellow for gof(x) = 2x - 3