Solving for sides and angles in right triangles using the trigonometric ratios