How does the midpoint formula involve finding averages?