Draw the triangles out in both quadrants. Use pythagoras' theorem to solve for the hypotenuse of both triangles. Now you have all the necessary information to get sinx, cosx, sin y, and cos y. With these values, simply plug them into the formulae for sin(x-y) and cos(x+y):