Write as a Function of x 3x^2+kx-18=0