Schroeder-Bernstein Theorem

If $f: A \to B$ and $g: B \to A$ are injections, then there exists a bijection $h: A \to B$.

So $|A| \leq|B|$ and $|B| \leq |A|$ then $|A| = |B|$.

I dont understand the proof of this theorem.