Factor by grouping.

3n3 – 12n2 + 2n – 8

A:(3n2 – 2)(n + 4)

B:(3 n 2 + 2)( n – 4)

C:( n + 2)(3 n – 4)

D:3(n3 –4n2) + 2n – 8

To factor by grouping, let's group the terms together:

(3n^3 - 12n^2) + (2n - 8)

Factor out the common factor from the first group: 3n^2

3n^2(n - 4) + 2n - 8

Now both groups have a common factor: n - 4

(3n^2 + 2)(n - 4)

Therefore, the correct factorization by grouping is:

B: (3n^2 + 2)(n - 4)