ax² + bx² + bx + ax + a + b = (ax² + ax + a) + (bx² + bx + b) =
= a(x² + x + 1) + b(x² + x + 1) = (x² + x + 1)(a + b)
ax² + bx² + bx + ax + a + b = (ax² + ax + a) + (bx² + bx + b) =
= a(x² + x + 1) + b(x² + x + 1) = (x² + x + 1)(a + b)