The endpoints of segment AB are A(2x, y-1), and B(y+3, 3x+1). The midpoint is M(-7/2, -8). What is the length of AB?