AB is a midsegment of trapezoid DEFG what is x?

Answer:
D. 2
Step-by-step explanation:
DEFG is a trapezoid and AB is its Midsegment.
Therefore,
[tex]AB =\frac{1}{2}(DG + EF) \\ \\ 12 = \frac{1}{2} (5x - 4 + 8x + 2) \\ \\ 12 \times 2= (13x - 2) \\ \\ 24 = 13x - 2 \\ \\ 24 + 2 = 13x \\ \\ 26 = 13x \\ \\ x = \frac{26}{13} \\ \\ x = 2[/tex]