Answer:
g(-1) = 3, g(2) = 6, g(5) = 4
Explanation:
Please refer to attached photo. (Apologies for the terrible handwriting.)
From here we can see,
g(x) = x + 4 applies for values x less than or equal to 2.
g(x) = 9 - x applies for values x more than 2 (which does not include 2.)
g(-1):
Since -1 < 2,
g(-1) = -1 + 4 = 3
g(2) = 2 + 4 = 6
g(5):
Since 5 > 2,
g(5) = 9 - 5 = 4