How to find angles and sides of a right triangle