To evaluate a piecewise function we need to correctly choose the correct expression for a given value of x.
In this case for any value of x different from 2 we need to use the expression:
And if x=2 the value of the function is -4. With this in mind we have:
Therefore: