[tex]A\sin ax + B \cos ax = R \sin (ax+b)[/tex]
Expanding the right hand side gives you [tex]R\sin ax \cos b + R \cos ax \sin b[/tex]
This gives [tex]R \cos b = A[/tex] and [tex]R \sin b = B[/tex], therefore [tex]b = \tan^{-1}\frac{B}{A}[/tex].
A similar method gives you R in terms of A and B, thus turning your sum of trig functions into another, single, trig function. :)