Let $f:\mathbb{R}^p \rightarrow \mathbb{R}^n$ and $g: \mathbb{R}^n \rightarrow \mathbb{R}^m$. Suppose that $\lim\limits_{x \to a} f(x)=L\lim\limits_{x \to L} g(x)=M$. Show that if $g$ is continuous at $L$ then $$\lim\limits_{x \to a} g(f(x))=M$$
Not sure how to get started here... Any hints will be appreciated!