Let A and B be closed subsets of M, and supposed that both $\displaystyle A \bigcup B$ and $\displaystyle A \bigcap B$ are connected. Prove that A and B are connected.

Find an example of disconnected subsets A,B of R such that $\displaystyle A \bigcup B $and $\displaystyle A \bigcap B$ are connected.