Problem:
Let $A, B \subset X$ be both compact, $X$ is a Hausdorff space, with $A \cap B = \emptyset $. Show that there exists open sets $U, V \subset X$ with $A \subset U, B \subset V$ and $U \cap V = \emptyset$
My idea
A space is compact if every cover has a finite sub-cover. So $A$ and $B$ both have this property. I was thinking that since $A$ and $B$ are disjoint, they are separated by some distance $\epsilon$ (although I am not sure I can talk about distances unless I am dealing with a metric space...) and then I could take open set enclosing $A$ and $B$ which can be constructed to be always $\epsilon/2$ distance from the other space. Not 100% if this is a good way to go...
Thanks in advance for your help