Solving Right Triangles Formula