urgent please help with this function!!

Answer:
g(-2) = 0
g(4) = -4
Step-by-step explanation:
-2 works in the second equation because it is within the restrictions, therefore it is 0.
4 works in the third equation because it is within those restrictions, therefor it is -4.