To be able to find the length of segment AB, we'll need to find the value of the variable x;
So let's go ahead and determine what x is;
If we have a straight line drawn from point A to point C with point B being between them, then the below is true;

Let's go ahead and substitute the given values for AB, BC and AC;

Solving fo x, we'll have;

Let's go ahead and find the length of segment AB;

Therefore, the length of segment AB is 42.