I assume that P -2 4 q 6 -2 means the two points that you are trying to find the midpoint to are meant to be coordinates.
This would mean that you would need to find the midpoint or point in the center on the graph. You would need to use the midpoint formula (x1+x2)/2 and (y1+y2)/2 The answer would therefore be the coordinate (2,1)