Divide the given polynomial by the binomial (x-3) //(long division). You will get the quotient as the quadratic polynomial. Then find the roots of this quadratic. If these roots are real numbers, then it will give you the desired decomposition of the given polynomial into the product of linear binomials.