When you are trying to find the midpoint of a line segment between two points you are basically taking both of the points and averaging the sum of both of their x and y values together. For x: -2+2=0 —> 0/2=0
For y: 5+7=12 —> 12/2=6. Put these values together to form a coordinate and you get the midpoint: (0,6)