Ta có: x - y = 7 ⇔ x = 7 + y
⇒ A = x ( x+2) + y ( y-2) - 2xy +37
⇔ A = (7 + y)( y+9) + y ( y-2) - 2(7+ y)y +37
⇔ A = 7y + 63 + y2 + 9y + y2 - 2y - 14y -2y2 +37
⇔ A = 63 + 37 = 100
Ta có: x+ 2y = 5 ⇔ x = 5 - 2y
⇒ B = x2 +4y2 - 2x +10 + 4xy - 4y
⇔ B = x2 + 4xy + 4y2 - 2x +10 - 4y
⇔ B = (x + 2y)2 - 2(x -5 + 2y)
⇔ B = (5 - 2y + 2y)2 - 2(5 - 2y -5 + 2y)
⇔ B = 52 = 25