Theory
The midpoint is halfway between two endpoints. To find it on a grid, count the horizontal change and the vertical change, then take half of each.
For two endpoints, average the x-coordinates to find the middle x-value. Average the y-coordinates separately to find the middle y-value.
For A(-2, 1) and B(4, 5), the midpoint is ((-2 + 4)/2, (1 + 5)/2) = (1, 3). On the diagram, it is 3 units right and 2 units up from A.
A midpoint does not have to land on a grid intersection with whole-number coordinates. Between (1, 2) and (2, 5), it is (1.5, 3.5).
Check your result by counting: the horizontal and vertical changes from A to the midpoint should match the changes from the midpoint to B.