.
The fact that (x-4) is a factor of 
 is equivalent, due to the Remainder theorem, that x= 4 is the root 
of the polynomial p(x) = 
, i.e. P(4) = 0,  or
    
 = 0.
It implies 
    
 = 0,  or  32 - 12 + k = 0  --->  k = -20.
Answer.   k = -20.
On the Remainder theorem see the lesson  Divisibility of polynomial f(x) by binomial x-a  in this site.
---------------------
    The remainder theorem
    1. The remainder of division the polynomial  
  by the binomial  
  is equal to the value  
  of the polynomial. 
    2. The binomial  
  divides the polynomial  
  if and only if the value of  
  is the root of the polynomial  
,  i.e.  
.
    3. The binomial  
  factors the polynomial  
  if and only if the value of  
  is the root of the polynomial  
,  i.e.  
.
---------------------
Also,  you have this free of charge online textbook in ALGEBRA-I in this site
    - ALGEBRA-I - YOUR ONLINE TEXTBOOK.
The referred lessons are the part of this online textbook under the topic 
"Divisibility of polynomial f(x) by binomial (x-a). The Remainder theorem".