Step-by-step explanation:
We are given a piecewise function as shown;
![\begin{gathered} g(x)=\begin{cases}{-1\text{ if}-2We have effectively been given the results or values of the function if the input falls within a given range.<p>Hence, if the input is -1, that is;</p>[tex]g(-1)]()
Note carefully that the condition is given if, the intput is between the range of ;
![-2Whereby x is greater than -2, and x is <strong>less than or equal to -1</strong>. In other words, if the input is -1, falls within this range, then the value of the function equals -1.<p>Hence;</p>[tex]g(-1)=-1]()
For the next part:

Falls within the range;
![-1That is, the input is;[tex]\begin{gathered} -1-1 \end{gathered}]()
Therefore,

The input 2 also falls within the range;
![1That is, x <strong>is less than or equal to</strong> 2.<p>Theefore;</p>[tex]g(2)=2](https://img.qammunity.org/2023/formulas/mathematics/college/u4opxxtu09ehcnsj3dpawkfm6zw9ry2pi4.png)
ANSWER:
