For every $A \subset \mathbb R^3$ we define $\mathcal{P}(A)\subset \mathbb R^2$ by $$ \mathcal{P}(A) := \{ (x,y) \mid \exists_{z \in \mathbb R}:(x,y,z) \in A \} \,. $$ Prove or disprove that $A$ closed $\implies$ $\mathcal{P}(A)$ closed and $A$ compact $\implies$ $\mathcal{P}(A)$ compact.
This $\mathcal{P}(A)$ seems to me the projection on the $xy$-plane, so intuitively both make sense to me.
My try
For the first one, to prove something is closed seems easiest to do with sequences, so for all sequences $(x^{(n)})$ in $A$ with $x^{(n)} \to x$ we have that $x \in A$. But I do not know how to progress further in a useful direction. For the second one I don't even know where to start.
Update
For the first one I tried to argue that for any sequence going to $x \in A$, a projection of that sequence on the $xy$-plane will also go to the projection of $x$, so $x \in \mathcal{P}(A)$, so hence $\mathcal{P}(A)$ must be closed.