The coordintes of the given sement are,
(2, 4) and ( 2, -7).
The midpoint is halfway between the two end points:
Its x value is halfway between the two x values
Its y value is halfway between the two y values
The cooridnate of the midpoint can be calculated as,

Therefore we have,

Thus, the correct option is D.