In the given figure, the value of AB is equal to 17 and the value of x is equal to 6.
In the given question it has been given that the length of segment XZ is equal to 34.
According to the mid-segment theorem, the mid-segment of a triangle is parallel to and half the length of the triangle's third side.
By using this theorem we can say that,
2AB=XZ
Substituting the value of segment XZ here we get,
2AB = 34
AB = 34/2
AB = 17
Now that we have the value of AB, we can easily calculate x because it has been given that AB = 3x - 1.
So, 17 = 3x - 1
3x = 18
x = 18/3
x = 6
Therefore, the value of AB is 17 and x is 6.