I got this problem from Munkres, my idea is similar, but comparing to the actual solution, I missed at least 4 steps.
Prove that the projection maps $\pi_1 : X \times Y \to X$ and $\pi_2 : X \times Y \to Y$ are both open maps.
Here is my solution
Let $U_1 \times U_2 \subset X \times Y$ be open in $X \times Y$, meaning $U_1$ and $U_2$ are open in $X$ and $Y$ respectively that is $U_1 \in \tau_X$ and $U_2 \in \tau_Y$. Now by the definition of $\pi_1$, we have $$\pi_1(U_1 \times U_2) = U_1 \in \tau_X$$ so the image is also open. The proof for $\pi_2$ is similar.
Now the solution in page 4 of the pdf includes all these union and basis things. The only major thing I noticed is that I didn't consider either $U_1$ or $U_2$ to be empty, but I am not sure how meaningful it is to project on empty sets because the projection is still empty and that is clearly open.