Solve problems using trigonometry (#50)