How do use midpoint formula to find an endpoint?