find the value of K such that the line through (0,K) and (-K,-1) has a slope of 1/2

(k - (-1))/(0-(-k)) = 1/2

(k+1)/k = 1/2

cross-multiply and solve for k