Solves sides of triangles using Pythagorean Theorem