We have
− 2(x2 − y2 + xy) − 3(x2 + y2 − xy)
Since the '-' sign precedes the parentheses, we have to change the sign of each term in the parentheses when we remove them.
= - 2x2 + 2y2 - 2xy - 3x2 - 3y2 + 3xy
= - 2x2 - 3x2 + 2y2- 3y2 - 2xy + 3xy
= - 5x2 - y2 + xy