Concept:The midpoint formula is used to equate the coordinates of the given midpoint with the actual midpoint of the two points.Explanation:For points (x1,y1) and (x2,y2), the midpoint is:(2x1+x2,2y1+y2)Here, the points are (1−k,−4) and (2,k+1), and the given midpoint is (−k,k).Equating the x-coordinates:−k=2(1−k)+2−k=23−kMultiplying through by 2:−2k=3−k−2k+k=3−k=3k=−3Equating the y-coordinates:k=2−4+(k+1)k=2k−32k=k−3k=−3Both coordinates confirm the same value.Answer:k=−3So the correct option is B.