Solving triangles using the trigonometric ratios