2. Remember that a function $f: \mathbb{R} ^n \rightarrow \mathbb{R}^m$ is linear iff for all $x,y \in \mathbb{R} ^n$ and $a,b \in \mathbb{R}$ we have $f(ax+by)=af(x)+bf(y)$. If you have $g,h: \mathbb{R} ^n \rightarrow \mathbb{R}^m$ the sum $(g+h)(x):=g(x)+h(x)$ and $(ag)(x):=ag(x)$. It should be clear from here, just try to work them out.
For the second one suppose $L: \mathbb{R} ^n \rightarrow \mathbb{R}^m$ and $M: \mathbb{R} ^m \rightarrow \mathbb{R}^p$ are linear take $x,y \in \mathbb{R} ^n$ and $a,b \in \mathbb{R}$ then $M \circ L(ax+by)=M(L(ax+by)=M(aL(x)+bL(y))=aM(L(x))+bM(L(y ))$