Task 12 Use Pythagorean theorem