midpoint formula | ScratchStats