Solving equations with angles