To better understand the problem, let's make an illustration based on the information given.
Since F is the midpoint of segment EG, then the measure of EF is half the measure of EG.

From this, we can solve for x.
a. Multiply 1/2 by the terms inside the parenthesis.

b. Subtract 6x on both sides of the equation.


c. Add 2 on both sides of the equation.


d. Lastly, divide both sides of the equation by 3 to isolate the variable x.


Answer:
Therefore, the value of x is 3.