What is the slope of the line containing the midpoint of the segment with endpoints at (2,4) and (0,−2) and the midpoint of the segment with endpoints at (5,1) and (1,5)? Express your answer in simplest form.
Midpoint1 = 1,1
Midpoint2 = 3,3 slope = (y1-y2)/(x1-x2) = (1-3)/(1-3) = 1