This is not a right triangle, so you cannot use the Pythagorean Theorem to find z.