Given that 2x²–kx+18 is a perfect square, find k and hence solve the equation 2x²–kx+18=0 by factorization.