Proof (existence of injection and surjection)

Injection exists $\implies$ surjection exists

Suppose $f: X\to Y$ is an injection. As $X\neq \emptyset$, pick any $x_0\in X$. Define $g: Y\to X$ by separation $$ \begin{align*} g(y) := \begin{cases} x, &\text{if $y\in \op{ran}(f)$ and $f(x) = y$}, \\ x_0, &\text{otherwise}, \end{cases} \end{align*} $$ which is a surjection.

Surjection exists $\implies$ injection exists

Let $(Y, <)$ be a well-order and $f: Y\to X$ be a surjection.

Define $g: X\to Y$ by sending $x$ to the $<$-minimal element of $\sb{y\in Y}{g(y) = x} \neq \emptyset$. Then $g$ is an injection.