I have that X equals $[0,1]\cup[2,3]$ as a subspace of $\mathbb{R}$, and $Y=[0,2]$ as a subspace of $\mathbb{R}$ we look at every space with the subspace topology.
Then we have the function:
$p(x)=x, x \in[0,1]$
$p(x)=x-1, x \in [2,3]$
I need to show that if A is a closed space in X, then $p(A)$ is closed in Y.
I guess one way is showing that $p(A)^c$ is open in Y. So let $y \in p(A)^c$. I need to show that there is an open set U in $\mathbb{R}$ such that $y \in U\cap [0,2]\subset p(A)^c$.
Do you have any hints please?