Let $(X,d)$ be a metric space. Prove that $E$ is disconnected iff there exists two open disjoint sets $A$,$B$ in $X$ such that $E\cap A\neq\emptyset, E\cap B\neq \emptyset$ and $E\subset A\cup B$.
I'm not sure how to begin, so let me just start by pointing some stuff out from the question that I noticed, and my knowledge as of now. (Hopefully it'll be useful.)
There is $a\in A, b\in B$ which are both limit points of $E$ (I think)
Since $A$ and $B$ are disjoint, $A\cap B=\emptyset$
The closure of a set is the "smallest" set which contains its limit points, (so it is a closed set as well).
Both $A$ and $B$ are open so they are made up entirely of interior points, so they don't have any points on the boundary.
I know that the definition of separated means that I have $A,B\subset X$, for which $A\cap \bar{B}=\emptyset=\bar{A}\cap B$, where the bar above the set denotes its closure.
And I know that the definition of connected set means for $E\subset X$, $E$ is connected if $E$ is not the union of two non-empty separated sets, so a disconnected set would be for $E\subset X$, $E$ is disconnected if it is the union of two separated sets (which are both non-empty).
Any hints as to how to begin would be appreciated. Thank you.