Prove that E $\subseteq$ X is not connected if and only if there exist open sets $A, B \subseteq X$ such that $E \subseteq A ∪ B, A ∩ B$ = $\emptyset$ and $E ∩ A$ and $E ∩ B$ are both nonempty.
$X$ is a nonempty set equipped with a metric d.
Having a hard time proving the ⇒ part of the proof. Help!