For positive reals $x,y,z$, if $xy+yz+xz=\sqrt{\frac pq}$, given $$x^2+xy+y^2=2$$ $$y^2+yz+z^2=1$$ $$z^2+zx+x^2=3$$ find $p-q$, where $p$ and $q$ are relatively prime integers.
I tried grouping the required sum by adding all the equations but it led me to nowhere. I tried applying basic AM-GM inequality to conclude that the sum is less than or equal to $2$, but this is of no use since $x,y,z$ are positive reals, not just positive integers.
I have exhausted all my ideas. Any hint/help is appreciated!
Actually there is a geometric solution to this. Consider a point $P$ in $\mathbb{R}^2$ and points $A$, $B$, $C$ with $PA=x$, $PB=y$, $PC=z$ and $\angle APB=\angle APC=\angle BPC=120^{\circ}$.
If you apply the cosine theorem you get that the triangle $\triangle ABC$ has sides $BC=1$, $AC=\sqrt{3}$, $AB=\sqrt{2}$. Notice that it is a right triangle since $AC^2=BC^2+AB^2$.
Computing the area in two ways $xy+yz+zx=\cfrac{4}{\sqrt{3}}\cdot \operatorname{Area}(\triangle ABC)=\cfrac{2\sqrt{2}}{\sqrt{3}}$
As a remark the numbers are quite incidental here; you can pick your favorite numbers for the system and do the same construction and instead use Herron formula for the area to compute $xy+yz+zx$.