Solving problems using trigonometric equations