The midpoint of a line is a point that is exactly halfway between the two end points. It will split a line into two equal parts. If point B splits line AC into two equal parts, then you can set the two equations equal to each other and solve to find x:
3x-10 = x +4
2x = 14
x=7
If x is 7, then AB= 11 and BC=11.
AB + BC = AC, so the length of the whole line is 11 +11 = 22