So as a beginning algebraic number theory enthusiast, my question is about the integer solutions of certain equations (let's say Euler's solution to $y^2 = x^3 - 2$). We work over $\mathbb{Z}[\sqrt{-2}]$ as that is a UFD. I understand the way we get to the solutions $(3, \pm 5)$.
However, my question is about how does the solvability in $\mathbb{Z}[\sqrt{-2}]$ guarantee these same solutions in $\mathbb{Z}$? Is it because $\mathbb{Z} \subset \mathbb{Z}[\sqrt{-2}]$, and so solvability with solutions in $\mathbb{Z}[\sqrt{-2}]$ guarantees solutions in $\mathbb{Z}$ with the same solutions?