Look at the picture.
For XY and ZX use the Pythagorean theorem.
The perimetero fo XYZ:
8.7m questions
11.4m answers