I am trying to solve this system of equations. I know the answer but I am struggling with the working. I need to find $x$, $y$, and $z$ in terms of $a$, $b$, and $c$. The system of equations is shown below: \begin{align} n&=\log a+p+\log z\\ n&=\log b+\log y+q\\ n&=\log x+\log c+r\\ n&=\log a+\log b+\log x\\ n&=p+\log y+\log c\\ n&=\log z+q+r\\ n&=\log a+\log y+r\\ n&=\log x+\log y+\log z \end{align} I know: \begin{align} x&=\sqrt{a}\cdot\sqrt{b}\\ y&=\sqrt{a}\cdot\sqrt{b}\\ z&=\sqrt{a}\cdot\sqrt{b} \end{align}
I would appreciate some help with working.
P.S. Thanks to @Haris Gusic for editing the LaTeX for me,
JUST TO CLARIFY: I know I have provided the answer I am looking for a method to get to the answer as I simply used a calculator to find it but I would like to know how to do via full working.
It is simpler to get rid of non-logarithmic terms by mapping $n\mapsto\log n$ and similarly for $p,q,r$ obtaining: $$\begin{align} n&=apz\tag1\\ n&=byq\tag2\\ n&=xcr\tag3\\ n&=abx\tag4\\ n&=pyc\tag5\\ n&=zqr\tag6\\ n&=ayr\tag7\\ n&=xyz\tag8\\ \end{align} $$ where all numbers are assumed to be positive.
(2)+(5)+(7): $$bq=pc=ar=\frac ny.\tag9$$
(9)+(1):$$n=az\frac n{yc}\implies z=\frac ca y\tag{10}$$
(9)+(3):$$n=xc\frac n{ya}\implies x=\frac ac y\tag{11}$$
(10)+(11)+(8): $$n=y^3\tag{12}$$
Substituting the values of $x$ and $n$ from (11) and (12) into (4) one obtains: $$ y^2=a^2\frac bc\tag{13} $$ and finally combining (10), (11) and (13): $$ x=a^2b^\frac12c^{-\frac32},\quad y=ab^\frac12c^{-\frac12},\quad z=b^\frac12c^{\frac12}. $$
Note that replacing the equation (4) with a similar $n=abz$ one would obtain $x=y=z=a^\frac12b^{\frac12}$ in agreement with the claim of OP. This suggests that there is a misprint in at least one of the original equations.