bear in mind that, the angle A is in the range of the II quadrant, where "y" is positive and "x" is negative.


now for angle B, bear in mind it's on the IV quadrant, and "y" is negative there whilst "x" is positive.
another thing, the sine is negative, but sine is opp/hyp, now, the hypotenuse is just a radius unit, and therefore never negative, so the negative in the fraction must be the numerator, thus is -7.

so, now, we have all sides, so lets' add cos(A + B) then
