So we have to write the following polynomial expression as a product of two factors:

In order to do this we should find one of its roots first i.e. a x value that makes P(x)=0. If we use r to label this root we can write P like:

Where a, b and c are numbers that we can find using Ruffini's rule. So first of all let's find a root. We can use the rational root theorem. It states that if P(x) has rational roots then they are given by the quotient between a factor of the constant term (i.e. the number not multplied by powers of x) and a factor of the leading coefficient (i.e. the number multiplying the biggest power of x). In this case we have to look for the factors of 6 and 2 respectively. Their factors are:

And the quotients and possible values for r are:

So one of these numbers make P(x) equal to zero. For example if we take x=-2 we get:

So -2 is a root of P(x) which means that we can take r=-2.
Now we can use Ruffini's law. On the first row we write the coefficients of P(x). Then the first one is repeated in the third row:
Now we multiply 2 by -2 and we write the result under the second coefficient. Then we add them:
Now we do the same with the 1:
And then we multiply 3 and -2 and add the result ot the last coefficient:
The numbers 2, 1 and 3 are the values of a,b and c respectively. Then we can write P(x) as a product of two factors and the answer is:
