Answer
a) $[-2,1]$
b) $(-\infty,-2)\cup(1,\infty)$
Work Step by Step
a) The equation:
$g(x)=f(x)$
has the solutions $x=-2$ and $x=1$.
The solution of the inequality
$g(x)\geq f(x)$
contains all the values of $x$ for which the graph of $g$ is above the graph of $f$ including the intersections:
$[-2,1]$
b) The solution of the inequality
$f(x)\gt g(x)$
contains all the values of $x$ for which the graph of $f$ is above the graph of $g$:
$(-\infty,-2)\cup(1,\infty)$