Solving problems using trigonometric ratios