The trick is that we can't use derivatives.
If we look at $\cos{x}+\cos{y}+\cos{(x+y)}$, the function cos attains its maximum of $1$ at $0$ radians, so $x=y=0$ and $x+y=0$ and the maximum of $\cos{x}+\cos{y}+\cos{(x+y)}=1+1+1=3$.
What about part of the function with $\sin$? If we use the same logic: $\sin$ attains its maximum of $1$ at $\pi/2$ radians, so $x=y=\pi/2$, so $x+y=\pi$, we get the maximum of $\sin{x}+\sin{y}-\sin{(x+y)}=1+1-0=2$, but I guess it's not true, cause Wolfram says the maximum is $0$.
Any hint would help a lot!! thank you!