These are the conditions of the continuity in a function:
First, the value of x must have an image.
Second, the lateral limits must be equal:
Finally, the value of the limit must be equal to the image of x. This means that:
In this case, we must find a value of k that can make the two lateral limits equal in x =3:
We can solve these two limits easily by replacing the x with the value of 3
Finally, we can see that the answer is k=2.