We must show that, if $\; p+\sqrt{q}=r+\sqrt{s} \;$ and p, q, r, s are rationals then:
either $\; p=r \; $ and $\; q=s$
or $\; q\;$ and $\; s\;$ are both squares of rationals.
I have squared both sides of the given equation and then rearranged to get:
$\sqrt{sq}=\dfrac{p^{2}-2pr+r^{2}-s-q}{2} \; \in \mathbb{Q}$
$\; \sqrt{sq} \; \in \mathbb{Q} \;$ means that $\; sq\;$ is a perfect square but I don't know how to show it must hold for both of them separately.
Suppose that $sq$ is a perfect square and that $s\neq q$. Then $\frac sq$ is also a perfect square (since it's equal to $\frac{sq}{q^2}$). Let $m\in\mathbb{Q}_+$ such that $m^2=\frac sq$. Since $s\neq q$, $m\neq1$. On the other hand$$p+\sqrt q=r+\sqrt s=r+m\sqrt q$$and therefore$$\sqrt q=\frac{p-r}{m-1}.$$But then $q$ is a perfect square and, since $\frac sq$ is a perfect square, $s$ is a perfect square too.