Finding trigonometric ratios given a right triangle