sin A is positive . Since it cant be in the first quadrant , then it must be in the second quadrant . That follows why cos A is negative .
cos B is positive , and it cant be in the first quadrant so it must be in the fourth quadrant , and sin B is negative here .
then use the sin formulas to expand and substitute appropriately .