How did you solve the problems involving right triangles?