If B is the midpoint of AC, that means the the line segments connecting the endpoints to the midpoints are the same length, or: AB = BC. With that in mind, we can set their lengths equal to each other:
x + 5 = 2x - 11
From there, simply solve for x and input that result back into the expression for AB (x + 5) and you’ll have your result.