Exercise: Suppose that $A$ and $B$ are open in $\mathbb{R}$. Show that $A\times B$ is open in $\mathbb{R}^2$ with the euclidian metric.
I know that this question pretty much was asked here, but I don't understand the given answer and I would like to know if there's an alternative way.
What I've tried: I know that $A\times B$ is open in $\mathbb{R}^2$, if $\mathbb{R}^2\backslash (A\times B)$ is closed. $\mathbb{R}^2\backslash (A \times B) = (\mathbb{R}\times \mathbb{R}\backslash A)\cup (\mathbb{R}\backslash B \times \mathbb{R})$. I know that $\mathbb{R}\backslash A$ and $\mathbb{R}\backslash B$ are closed, so if I'm able to show that $\mathbb{R}\times \mathbb{R}\backslash A$ is closed, then I'm done. Unfortunately I don't have a clue on how I should proceed.
Question: How do I solve this exercise?
Take $(a,b)\in A\times B$. Take $r_a>0$ such that $(a-r_a,a+r_a)\subset A$ and take $r_b>0$ such that $(b-r_b,b+r_b)\subset B$. Then $(a-r_a,a+r_a)\times(b-r_b,b+r_b)\subset A\times B$. Let $r=\min\{r_a,r_b\}$. Then the open disk centered at $(a,b)$ with radius $r$ is a subset of $(a-r_a,a+r_a) \times(b-r_b,b+r_b)$ and therefore a subset of $A\times B$. So, $A\times B$ is open.