Answer
a) $[-2,1]$
b) $(-\infty, -2 ) \cup (1, \infty)$
Work Step by Step
a) We observe from the graph the interval where the function $f$ values are below or equal to the value of $g$. We get the interval: $[-2,1]$
(b) We reverse the interval in (a) to get: $(-\infty, -2 ) \cup (1, \infty)$