Let $E_1$ and $E_2$ metric spaces and $E=E_1\times E_2$ a metric spaces with some metric $d$. Let $\pi_1$ and $\pi_2$ the projections maps of $E_1\times E_2\rightarrow E_1$ and $E_1\times E_2\rightarrow E_2$ respectly, i.e, $$\pi_1(x, y)=x,\,\,\,\,\,\,\,\,\,\pi_2(x, y)=y;\,\,\,\,\,\,\,\,\forall\,\,(x, y)\in E_1\times E_2$$
I know that if $A\subseteq E$ is open then $\pi_1(A)$ is also open in $E_1$ and $\pi_2(A)$ is also open in $E_2$, but the reverse is true? i.e if $\pi_1(B)$ is open in $E_1$ and $\pi_2(B)$ is open in $E_2$ then $B$ is open in $E_1\times E_2$?