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