Let $A$ and $B$ be sets. Suppose that there is some set $C$ such that $A \cap C = B \cap C$ and $A \cup C = B \cup C$. Show that $A = B$.
My sketch is the following. Suppose first that sets are non-empty and instead that $A$ were not equal to $B$. Then there must exist an element in either $A$ or $B$ that is not in the other. In particular, choose a in $A\setminus B$. Then this a must be in $A \cap C = B \cap C$. But this contradicts the fact that a was not in $B$.
In fact, I am interested in the logic of my steps. Any comment would be helpful.