how did you solve problems involving right triangles​