How would one factor a number, say $9+4\sqrt{2}$ in $\mathbb{Z}[\sqrt{2}]$?
This is what I've attemped to do: $$(a_1+b_1\sqrt{2})(a_2+b_2\sqrt{2}) $$ $$a_1a_2+a_1b_2\sqrt{2}+a_2b_1\sqrt{2}+2b_1b_2$$ Thus, \begin{eqnarray} a_1a_2+2b_1b_2&=&9 \\ a_1b_2+a_2b_1 &=& 4. \end{eqnarray}
But this results in 4 variables and only 2 equations.
The point is, of course, that you want to factor into primes. The norm in $\mathbb{Z}[\sqrt{2}]$ is $N(a+b\sqrt 2)=a^2-2b^2$, so $N(9+4\sqrt 2)=49$ and we only have to worry about primes of norm $\pm 7$. So, when does $a^2-2b^2=\pm 7$ with $a,b$ integers? Well, $(3,1)$ looks tempting, but doesn't work. So we simply take the conjugate of $3+\sqrt 2$, which must be in the other prime dividing $7$. And indeed, $(3-\sqrt 2)(5+3\sqrt 2)$ is the desired factorization. Note $3-\sqrt 2$ must be an associate of $1+2\sqrt 2$, which figured in the other suggested factorization.