In this video by 0:55, it says
Lemma: Let $A,B,C,D$ be sets with $A\cap B=\emptyset$ and $C\cap D=\emptyset$. Suppose that $F_1:A\to C$ and $F_2:B\to D$ are both bijections. Define $F:A\cup B\to C\cup D$ by $$ F(x)=\begin{cases} F_1(x) & \text{ if } x\in A \\ F_2(x) & \text{ if } x\in B \end{cases} $$ Then $F$ is a bijection.
To me, it is easy to prove it by looking at the $F|_A$ and $F|_B$ seperately, and then, by construction, $F$ is bijective by collecting the elements of $A$ and $B$. The question is, why do the intersections $A\cap B$ and $C\cap D$ have to be empty, in particular the last one?