Exercise 1.1.34. let (x, y, z) be a pythagorean triple, and let p = x + y + z and a = 1 2 xy be the perimeter and area, respectively, of the right-angled triangle whose side lengths are x, y and z.