What is the formula for midpoint

The midpoint of (a,b) and (c,d) is

( (a+c)/2 , (b+d)/2 )

in effect you are taking the average of both x's and y's