By the confront theorem we know that the limit only exists if both lateral limits are equal
In this case they aren't so we don't have limit for x approaching 2, but we can find their laterals.
Approaching 2 by the left we have it on the 5 line so this limit is 5
Approaching 2 by the right we have it on the -3 line so this limit is -3
Think: it's approaching x = 2 BUT IT'S NOT 2, and we only have a different value for x = 2 which is 1, but when it's approach by the left we have the values in the 5 line and by the right in the -3 line.