∵X+17=Y+7
∴X-Y=-10
∵Y+7=Z+6
∴Y-Z=-1
∵X+17=Z+6
∴Z-X=11
∴(x-y)^2+(y-z)^2+(z-x)^2=(-10)^2+(-1)^2+11^2=222