$(X, \mathcal{T})$ is a topological spaces. $X$ is Hausdorff. $A,B$ are compact, disjoint sets in $X$.
Suppose $X$ is Hausdorff and $A \subset X$, $B \subset X$ are compact and disjoint. Consider an arbitrary point $a_i \in A$. Since $A \cap B = \emptyset$, $a_i \in X - B$. Let $b_i \in B$. Clearly, $a_i \neq b_i$. Since, $X$ is Hausdorff, there exists an open neighbourhood $U(a_i)$ of $a_i$ and an open neighbourhood $V(b_i)$ of $b_i$ such that $U(a_i) \cap V(b_i) = \emptyset$. \ The set $\mathcal{V} = \{V(b_i) \mid b_i \in B\}$ is an open cover of $B$. By compactness of $B$, there exists a finite subcover of $B$ contained in $\mathcal{V}$, say $\{V(b_1),V(b_2), \dots ,V(b_n)\}$. It follows that $B \subset \bigcup_{i=1}^n V(b_i)= V$. Clearly $V \in \mathcal{T}$. Similarly, there exists $U \in \mathcal{T}$ such that $A \subset \bigcup_{i=1}^n U(a_i) = U$.
Now, how do I show $U \cap V = \emptyset$ ?