This looks like an assignment of some sort so I won't give direct answers.

By definition of conitnuity, limit x-> a f(x) = f(a)

The key here is to find a,b such that the limit from the left of 2 and the limit from the right of 2 correseponds to f(2).

Basically you'll need to find this: