If U and V were not contained in each other, you could find a basis of their union of the form
[tex]u_1,\dots,u_a,v_1,\dots,v_b,w_1,\dots,w_c[/tex]
where the u's belong to U, the v's belong to V and the w's belong to the intersection (if this is not a zero dimensional space). Consider for example the vector
[tex]u_1+v_1[/tex]
This vector can't belong to the union of U and V, because the basis above is composed of linearly independent vectors. So the union of U and V is not a vector space, a contraddiction.