Factorise

18x^2+10x+31

Check the discriminant, b^2-4ac = -2132

Since it is negative, there are no real roots. In other words, you cannot factor it.