First, locate the given points.
Then, draw the line that connects them
Next, add the two x-coordinates of the endpoints and divide by 2. In this case, (1 + 4)/2 = 5/2 = 2.5
Then, draw a line perpendicular to the x-axis that passes through x = 2.5, until it intersects the other line. The intersecting point is the midpoint.
In this case, the coordinates of the midpoint are (2.5, 0.5), as can be seen in the figure