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