Writing acosx+bsinx in the form Rcos(x-a)

Information: Writing acosx+bsinx in the form Rcos(x-a)