Find k so that (x-2) is a factor of x³+kx-4?


Kindly help me this one

let f(x) = x^3 + kx - 4

if x-2 is a factor, then f(2) = 0
f(2) = 8 + 2k - 4 = 0
2k = -4
k = -2