The most common mistake is averaging the wrong pair, adding x1 to y1 instead of x1 to x2. Keep the axes separate. Average the two x values for the midpoint x, and average the two y values for the midpoint y.
A second mistake is forgetting that the distance formula uses the differences, not the sums. The distance is sqrt((x2 - x1) squared + (y2 - y1) squared), not sqrt((x1 + x2) squared + (y1 + y2) squared). For (2, 4) and (6, 10), the differences are 4 and 6, and the distance is 7.21.
A third mistake is giving a slope for a vertical line. When x1 equals x2, the segment is vertical and the slope is undefined, because the formula divides by zero. A slope of zero means a flat horizontal line, which is a different thing entirely.