Let $S_1$ and $S_2$ be subsets of a vector space. When does the equality $$\operatorname{span} (S_1 \cap S_2) = \operatorname{span}(S_1) \cap \operatorname{span}(S_2)$$ hold? I have found two sufficient conditions: They are vector spaces; one is a subset of the other. Any others?
But what is the necessary and sufficient condition? Can it be that there are no necessary conditions, or in other words we cannot necessarily characterize $S_1$ and $S_2$? What are some other problems where this situation arises?