Solve the problem.Factor f (x) = x3 + x2 – 10x + 8 given tha…