how to solve a linear trig equation