If $(x+y-7)[z(x+y)+24]=(y+z-7)[x(y+z)+24]=(z+x-7)[y(z+x)+24]$, find $x^2+y^2+z^2$ 
Let x, y, z be pairwise distinct real numbers, if $$(x+y-7)[z(x+y)+24]=(y+z-7)[x(y+z)+24] $$ $$=(z+x-7)[y(z+x)+24]$$, find $x^2+y^2+z^2$

I've tried many ways but couldn't find a working way to solve it. I tried letting $(x+y-7)[z(x+y)+24] = k$ and $t = x + y + z$ but none of these gives useful transformation as far as I can see. Could somebody shed some lights on this? Thanks in advance.
 A: let $f_z=(x+y-7)(z(x+y)+24)$,$f_y,f_x$ defined similarly $$f_x=f_y=f_z=k$$ $$f_z-f_y=0\to -(y - z) (x^2 - 7 x - y z - 24)=0$$  so $$x^2-7x-yz=24$$and similarly for others yield  $$p_x=p_y=p_z=24$$ where $p_x=x^2-7x-yz$ and others defined similarly $$p_x-p_y=0\to (x-y)(x+y+z-7)=0$$ so $$x+y+z=7\to z=7-x-y$$ Plug this into orginal condition to get $$z^3-7z^2-24z-k=x^3-7x^2-24x-k=y^3-7y^2-24y-k=0$$ thus $x,y,z$ are the roots of cubic $$p(t)=t^3-7t^2-24t-k$$ Now by vieta you can easily find $x^2+y^2+z^2$
A: Let $S=x+y+z$. Given is
$$P(x)=(S-x-7)\{x(S-x)+24\}$$
$$=x^3-x^2(2S-7)+x(S^2-7S-24)+24S-168$$
has same value as $P(y), P(z)$.
This means $x,y,z$ are roots of the polynomial, $P(x)+\text{constant}$.
By Vieta's, sum of roots is $S=2S-7 \Rightarrow S=7$. Also
$$xy+yz+zx=-(7^2-7\cdot 7 -24)=24$$
Hence $x^2+y^2+z^2=7^2-2\cdot 24=1$
A: I write $u = y + z$, $v = z + x$, $w = x + y$ and $s = (u + v + w) / 2 (= x + y + z)$.
The equation becomes $$(u - 7)(us - u^2 + 24) = (v - 7)(vs - v^2 + 24) = (w - 7)(ws - w^2 + 24).$$
Taking the difference of the first and the second term, we get $$(u - v)((u + v - 7)s - (u^2 + uv + v^2 - 7(u + v) - 24)) = 0.$$
Since $x, y, z$ are all different, we know that $u, v, w$ are all different. This leads to $$(u + v - 7)s = u^2 + uv + v^2 - 7(u + v) - 24 \tag{1}$$ and symmetrically $$(v + w - 7)s = v^2 + vw + w^2 - 7(v + w) - 24.$$ Taking the difference of the above two identities, we get $$(u - w)s = (u - w)(u + w + v - 7)$$ which leads to $$s = 2s - 7$$ and thus $s = 7$.
Now (1) becomes $$u^2 + uv + v^2 - 14(u + v) + 25 = 0. \tag{2}$$ Taking the symmetric sum of (2), we get $$2\sum u^2 + \sum uv - 56s + 75 = 0. \tag{3}$$
If we write $t = \sum x^2$, then we have $\sum xy = (s^2 - t)/2 = (49 - t)/2$. It follows that $$\sum u^2 = \sum (y^2 + 2yz + z^2) = 2\sum x^2 + 2\sum xy = 49 + t$$ and $$\sum uv = ((2s)^2 - \sum u^2) / 2 = (147 - t) / 2.$$
Thus the equation (3) reads $$2(49 + t) + (147 - t) / 2 = 317$$ and we deduce that $t = 97$.

Finally, it is possible to give examples of $x, y, z$ satisfying these equalities.
E.g. $x = 3, y = 2 + 2\sqrt{10}, z = 2 - 2\sqrt{10}$.
