If something divides $a$ and $b$, it divides $a-b$. So a common factor of $y+\sqrt{-2}$ and $y-\sqrt{-2}$ divides $(y+\sqrt{-2}) - (y-\sqrt{-2}) = 2\sqrt{-2}$.
If something divides $a$ and $b$, it divides $a-b$. So a common factor of $y+\sqrt{-2}$ and $y-\sqrt{-2}$ divides $(y+\sqrt{-2}) - (y-\sqrt{-2}) = 2\sqrt{-2}$.