Since you don't show details of your calculation, it isn't possible to say where you went wrong.
However, why complicate matters ? You can integrate wrt to x as usual. Just find the area under the cosine curve and subtract the area under the sine curve. The limits for x will be x=0 and the x coordinate of the point of intersection of the two curves.