\n" );
document.write( "Hi, \n" );
document.write( "The factor theorem states that a polynomial f(x) has a factor (x − k) if and only if f(k) = 0. \n" );
document.write( "root are 2 and 5, therefore: (x-2) and (x-5) are factors \n" );
document.write( "y = (x-2)(x-5) \n" );
document.write( "y = x^2 - 7x + 10 \r \n" );
document.write( "\n" );
document.write( "