If ef=2x+4,fg=4x-10,and eg=12 find the values of x,ef and fg?

Are ef, fg segments of a line eg?

If so, (2x +4) + (4x -10) = 12
6x -6 = 12
Solve for x. Then compute ef and fg, knowing x.