We had a quiz and there were two versions so you didn't have the same as your neighbor

I could do the other one, but the one I was assigned seemed much more difficult

Is there something I'm missing here? because I can't seem to do this one

Find the general solution of $\displaystyle xsin(x+y)y' + xsin(x+y) = cos(x+y)$