(x+y)(x+y+z)+(y+z)(x+y+z)+(z+x)(x+y+z)=189+147+546
(x+y+z)(x+y+y+z+z+x)=882
(x+y+z)(2x+2y+2z)=882
(x+y+z)2(x+y+z)=882
2(x+y+z)2=882
(x+y+z)2=882:2
(x+y+z)2=441
x+y+z=21
(x+y)(x+y+z)=189 => x+y=189:21=9
(y+z)(x+y+z)=147 => y+z=147:21=7
(z+x)(x+y+z)=546 => z+x=546:21=26
x+y=9; x+y+z=21 => z=21-9=12
y+z=7; x+y+z=21 => x=21-7=14
z+x=26; x+y+z=21 => y=-5
Vậy x=14; y=-5; z=12