Answer
$(3x-1)(x^2+2)$
Work Step by Step
Regroup to obtain:
$=(3x^3-x^2)+(6x-2)$
Factor out $x^2$ in the first group and $2$ in the second group to obtain:
$=x^2(3x-1)+2(3x-1)$
Factor out the greatest common factor $(3x-1)$ to obtain:
$=(3x-1)(x^2+2)$