Solves missing lengths of right triangles.