Solves sides of triangles using the Pythagorean Theorem