I was tring to culculate the fundamental group of $\mathbb{RP}^n$ with VAN KAMPEN to have a better understanding on how to use this theorem. $\left(\mathbb{RP}^n:=S^n/ \sim \left((x_0,\cdots,x_n) \sim(-x_0,\cdots,-x_n)\right)\right)$
By consider the $A=\left\{[(x_0,\cdots, x_n)] \in \mathbb{RP}^n|-1<x_0<1\right\}$, $B=\left\{[(x_0,\cdots, x_n)] \in \mathbb{RP}^n|x_0>0\right\}$. In case $n=2$ Obviously, we have that the fundamental group of $B$ is $1$ and of $A$ is $\mathbb{Z}$ and consider the element of fundamental groub of $A$ which is $a$. We have that $a^2$ is in the intersection of $A$ and $B$. Thus, $a^2$ shoud be $1$ in fundamental group of $\mathbb{RP}^2$. Therefore the fundamental group of $\mathbb{RP}^2$ shoud be $\mathbb{Z}/2$.
Then I consider the $n>2$ case, I realise that the fundamental group of $B$ is still $1$. And $A$ is the $\mathbb{RP}^{n-1}$. The fundamental group of $A\cap B$ shoud be 1 when $n>2$, because the $A\cap B$ is $S^{n-1}$. I am not sure if I could use the Van Kampen directly to say that the fundamental group of $A\cup B$ is the same as $A$ because the fundamental group of both $A$ and $A\cap B$ is $1$.