pythagorean theorem real world problems