Let $P\left ( x \right )=$" $x$ is a is divisible by 2
Let $Q\left ( y \right )=$" $y$ is a Divisible by 4
And let domain be even number.
$\forall x \exists P\left ( x \right )\rightarrow Q\left ( x \right )$
LHS implies $\forall P\left ( x \right )$ is true and also $\exists y Q\left ( y \right )\left [ y=\left \{ 4,8,12,.. \right \} \right ]$
True$\rightarrow$True $\Rightarrow$true
now $\forall x P\left ( x \right )\rightarrow \exists y Q\left ( y \right )$
$\forall x P\left ( x \right )$ is always true and also $\exists y Q\left ( y \right )$ is also true
True$\rightarrow$true$\Rightarrow$true
$\therefore$LHS$=$RHS
If you have confusion change the domain,
Let domain be the Prime number,
now taking your LHS $\forall P\left ( x \right )$ is false ,you can blindly say LHS is True and same for RHS giving $\Rightarrow$LHS= RHS