Let $U,W$ be subspaces of a vector space $V$. Show that $$\dim(U)+\dim(W)=\dim(U+W)+\dim(U\cap W)$$ Hint: Show that the map given by $L:U×W\to V$ given by $L(u,w)=u-w$ is linear.
I can show that $L:U×W\to V$ given by $L(u,w)=u-w$ is a linear map. I also know that the dimension of $U×W$ is $\dim(U)+\dim(W)$. What do I do next? Any hints?