The sequence has two "$\mapsto$", which I'll call $\Phi_1, \Phi_2$; the first should be the map $v \mapsto (v,v)$ and the second is $(v,w) \mapsto v - w$. That way the image of the first map is precisely the kernel of the second.
Now use the first isomorphism theorem, which gives an isomorphism $W_1 \oplus W_2/\ker \Phi_2 \mapsto W_1 + W_2$. So it suffices to compute the dimension of the domain of this map.
But $\ker \Phi_2 = \text{Im } \Phi_1$; the map $\Phi_1$ injects and so the dimension of its image is $\dim W_1 \cap W_2$ and (as you can check) the dimension of a quotient space is equal to the difference of the dimensions (in the finite dimensional case).
We conclude that $\dim (W_1 + W_2) = \dim W_1 + \dim W_2 - \dim(W_1 \cap W_2)$, as $\dim W_1 \oplus W_2 = \dim W_1 + \dim W_2$.
\dimwhich is a native LaTeX (and MathJax) command. – Asaf Karagila Feb 03 '13 at 00:39