$$\left.\begin{array}{ccc} (x,y)\in \overline{A\times B}\Rightarrow\pi_1(x,y)\in\pi_1\left[\overline{A\times B}\right]\Rightarrow x\in\pi_1\left[\overline{A\times B}\right] \\ (x,y)\in \overline{A\times B}\Rightarrow\pi_2(x,y)\in\pi_2\left[\overline{A\times B}\right]\Rightarrow y\in\pi_2\left[\overline{A\times B}\right] \end{array}\right\}\Rightarrow $$
$$\Rightarrow (x,y)\in\pi_1\left[\overline{A\times B}\right]\times \pi_2\left[\overline{A\times B}\right].$$