Let $ (X, \tau) $ be a Hausdorff topological space and $ K \subset X $ compact. If $ A, B \subset K $ closed non-empty disjoint such that no component of $ K $ intersects $ A $ and $ B, $ show that there exist $ K_A, K_B \subset K $ mutually separated such that $ K = K_A \cup K_B $, $ A \subset K_A $ and $ B \subset K_B $
Proof: Let $ A, B \subset K $ closed non-empty disjoint of a Hausdorff space then they are compact and disjoint of a Hausdorff space, therefore there exist $ K_A $ and $ K_B $ open and disjoint such that $ A \subset K_A $ y $ B \subset K_B $ and let $ x \in K $ such that $ C_{K} (x) $ the component connected with $ C_{K} (x) \cap A = \emptyset = C_{K} (x) \cap B $ then $ C_{K} (x) \cap K_A = \emptyset = C_{K} (x) \cap K_B $, so $K_A, \ K_B$ they are mutually separate ...
How could the demonstration continue?
Thanks!