Let $X$ be Hausdorff and $A,B \subseteq X$ be disjoint compact subspaces of $X$. Prove that there are $U$ and $V$ open disjoint sets in $X$, $A\subseteq U$ and $B\subseteq V$.
I know that: $A$ and $B$ are closed in $X$.
But I have no idea how to prove statement using that $X$ is Hausdorff since with that information I know what to do only with points :/
Maybe just an idea?