Let $$ M=\left\{ \begin{pmatrix} a & b \\ 2b & a \end{pmatrix} : a,b \in \Bbb{Q} \right\}.$$ We can show that $M$ is a ring. The problem is to find all ideals of $M$.
Here is my work so far.
In order for $I \subset M$ to be an ideal, it must first be a subgroup of $(M,+)$. But, I don't know how to find all subgroups of $M$, so I am stuck here. Any help is appreciated.
Hints:
Your ring is commutative and generated by $\begin{bmatrix}1&0\\0&1\end{bmatrix}$ and $\begin{bmatrix}0&1\\2&0\end{bmatrix}$, the latter of which behaves like $\sqrt{2}$. Therefore you have a ring epimorphism sending $1\mapsto \begin{bmatrix}1&0\\0&1\end{bmatrix}$ and $x\mapsto\begin{bmatrix}0&1\\2&0\end{bmatrix}$ that makes a map $\mathbb Q[x]\to M$ with $x^2-2$ in the kernel.
This allows you to look at $M$ as an easily understood quotient of $\mathbb Q[x]$.