I want to prove that a surjective, continuous and closed map is a quotient map. I know that a surjective map $p: X \longrightarrow Y$ is a quotient map if every set $V \subset Y$ is open $\Longleftrightarrow$ $p^{-1}(V)\subset X$ is open. Please note that $p^{-1}$ is the pre-image
Since we have continuity, one only has to prove the implication $\Longleftarrow$
Let $V\subset Y$ so that $p^{-1}(V)\subset X$ is open. $X\backslash p^{-1}(V)$ is closed and since $p$ is a closed map, $p(X\backslash p^{-1}(V))$ is closed. Here is where I get confused. If I knew that $p$ was injective, then I could keep going like this: $$p(X\backslash p^{-1}(V))=p(X)\backslash p(p^{-1}(V))$$ and since $p$ is surjective: $$p(X)\backslash p(p^{-1}(V))=Y\backslash V$$ and then we'd be done, because $Y\backslash V$ is closed and therefore $V$ is open. However, as I don't know if $p$ is injective I can't follow this path. Could someone help me?