what is the solution of a right triangle