Find the coordinates of the midpoint of stack J K with bar on top

J(-1,3), K(7,-1)

is it the answer 3,1 explain?!?!?!?