Solution of Right Triangles