Use the Pythagorean theorem to do these. The "base" b and "height" a of the (imaginary)
right triangle whose hypotenuse c is the line segment connecting the two points.
So you won't need to bother with the complicated formulas.
One endpoint at origin, other at (a,b). Length formula? What is midpoint?
Given an endpoint and the midpoint, what is the other endpoint?
Three points define a triangle. The three midpoints define a triangle. Look.
Worksheets. Length of each line segment and its midpoint.
Vertical and horizontal line segments by inspection.
Diagonal line segment as the hypotenuse of a right triangle
whose "base" side is |x1-x2|, the distance between the x's,
and whose "height" side is |y1-y2|, the distance between the y's.
Pythagorean theorem:
hypotenuse = √(base2+height2)
"Bonus" review of some basic right triangles.