Daniel B. answered 10/20/21
A retired computer professional to teach math, physics
The question regarding f(x) is unrelated to the definition of a limit for a sequence,
so I ignore the latter.
The function f(x) has three pieces.
For x < -2, f(x) is completely defined and 1 = lim f(x) as x->-2 from the left.
For x > 2, f(x) is also completely defined and 8 = lim f(x) as x->2 from the right.
For -2 <= x <= 2, f(x) is not completely defined as it has the two parameters a,b.
You are to find a, b so that the function f(x) is continuous, meaning that its values are
the same as its limits.
In particular, continuity requires
f(-2) = 1
f(2) = 8
That gives you the two equations
a×(-2) + b = 1
a×2 + b = 8
You can solve them for a, b.