If p(x) = (x+2)(x+k) and if the remainder is 12 when p(x) is divided by x-1, then what is the value of k?