Mis the midpoint of AB. If the length of the line segment AM is 20, and the length of the line segment MB is 3x +
8, what is the value of x?