Perfectly square

The sums of the squares of three related numbers is also a perfect square - can you explain why?

Problem

Perfectly Square printable sheet

 

We are first given that: $$x_1 = 2^2 + 3^2 + 6^2$$ $$x_2 = 3^2 + 4^2 + 12^2$$ $$x_3 = 4^2 + 5^2 + 20^2$$ Then show that $x_n$ is always a perfect square.