Solving Equations Using Compound Angle Formulae