Assume that $K$ is a compact subset of $\mathbb{R}$. Prove directly that $K′=\{(x,0) :x\in K\}$ is a compact subset of $\mathbb{R}^2$.
I have been given the following hint: Suppose that $\{U_i\}_{i\in I}$ is a cover of $K′$ by open sets. These $U_i$ are subsets of the plane $\mathbb{R}^2$. Find a collection $\{V_i\}_{i\in I}$ of open subsets of the real line $\mathbb{R}$ that cover $K$. Be sure to prove that your sets $V_i$ are open—you can’t just say that they are open, you have to prove that.
It really seems kind of like common sense that if all the values of $x$ form a compact set, then $(x,0)$ forms a compact set since $0$ is just $0$. I don't even really understand the hint given.