M is the midpoint of AB. AM=5x and MB=3x+4. find x.

M is the midpoint, so AM = MB

substitute the expressions and equate them, then solve the equation.