Application problems involving the Pythagorean theorem