The endpoints of AB are given. Find the coordinates of the midpoint M. Then find AB. Round your answers to the nearest tenth, if necessary.
A(2,-1), B(10,7)
M( , )
AB=