So we have the following piecewise function:
![\begin{gathered} f(x)=-x^2-2x-3\text{ if }x<3 \\ f(x)=-(1)/(3)x-8\text{ if }x\ge3 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/fywd996uqnxqh5p9z4si663bgkdb16x7yx.png)
And we need to find f(-5). First of all we must decide which of the two expressions we have to use. We have x=-5 which is smaller than x=3 so we are in the interval x<3 which means that we must take the first expression and substitute x with -5:
![f(-5)=-(-5)^2-2\cdot(-5)-3=-25+10-3=-18](https://img.qammunity.org/2023/formulas/mathematics/college/8bu49117xq28neq7htarp9mhc4xd1d38nn.png)
Then the answer is -18.