Determine \begin{equation}\lim_{x\to 2}\,f(x)\quad\mbox{where}\quad f(x)=\left\{\begin{array}{lr}x^2,&x\leq 1\\5x,&x\gt 1\end{array}\right.\end{equation}

Problem: 

Determine \begin{equation}\lim_{x\to 2}\,f(x)\quad\mbox{where}\quad f(x)=\left\{\begin{array}{lr}x^2,&x\leq 1\\5x,&x\gt 1\end{array}\right.\end{equation}

Answer: 

10