For a real number x, let
f(x) = x^2 if x <= -7
f(x) = |3x + 1| if -7 < x <= 1
f(x) = 3x - 8 if x > 1
Find all x for which f(x)=5.
Here is you diagram, can you work it out now.