Suppose that neither is a subset of the other.
If is a subspace then
But if then or
That is a contradiction. Similarly if we get a contradiction.
Thus one of U or V is a subset of the other.
Clearly, if one of U or V is a subset of the other then their union is a subspace.