Hint: Try drawing a picture of $f(x)$, even if it's just from, say, $x=1$ to $x=3.$ Try to figure out the limit of $f(x)$ to the left and right of $x=2$. Is it the same? What happens when $x=2$?
Remark: If the limit on the left and right hand side is the same (i.e. the function approaches the same $y$-value from both sides of the neighboring $x$ value) , there is a good chance that the function is continuous. Often one defines continuity as "not having to lift your pencil up when you graph the function." However, note that there is indeed a point discontinuity at $x = 2$ due to the limit from the LHS being $9$ and the limit on the RHS being $9$, but the function is defined to be $0$ at $x=2$. This implies a point discontinuity which can be removed if you re-define $f(2)$ to equal $9$ for your original function. This would make $f(x)$ continuous everywhere along the real numbers.