We have:\(x:y:z=a:b:c\Rightarrow\dfrac{x}{a}=\dfrac{y}{b}=\dfrac{z}{c}=\dfrac{x+y+z}{a+b+c}=x+y+z\)

\(\Rightarrow\left(x+y+z\right)^2=\dfrac{x^2}{a^2}=\dfrac{y^2}{b^2}=\dfrac{z^2}{c^2}=\dfrac{x^2+y^2+z^2}{a^2+b^2+c^2}=x^2+y^2+z^2\)

Lê Quốc Trần Anh selected this answer.