Determine the midpoint of two points on a line graph