Proving that the Union of Two Compact Sets is Compact
HINT: You’re starting in the wrong place. In order to show that $S_1\cup S_2$ is compact, you should start with an arbitrary open cover $\mathscr{U}$ of $S_1\cup S_2$ and show that it has a finite subcover. The hypothesis that $\mathscr{U}$ covers $S_1\cup S_2$ simply means that $S_1\cup S_2\subseteq\bigcup\mathscr{U}$. Clearly this implies that $S_1\subseteq\bigcup\mathscr{U}$ and $S_2\subseteq\bigcup\mathscr{U}$. Thus, $\mathscr{U}$ is an open cover of $S_1$ and also an open cover of $S_2$. Now use the compactness of $S_1$ and $S_2$ to produce a finite subset of $\mathscr{U}$ that covers $S_1\cup S_2$.
Start with an open cover of the union. For $i=1,2$ it is also an open cover of $S_{i}$. These are compact so there are finite subcovers. The union of these subcovers is a finite subcover of the union.
Every open cover of the union is an open cover of each set. So for each set there is a finite subcover. The union of the finite subcover is still finite and covers the union of the two sets. So the union is indeed compact.
Suppose you have an open cover of $S_1 \cup S_2$. Since they are separately compact, there is a finite open cover for each. Then combine the finite covers, this will still be finite. Hence the union is compact,