In the figure to the right, EG = 12, EF = 2x – 3 and FG = x + 6. Find EF and FG.

Here the whole line segment measures 12.
Now, transpose -3 and 6 to the RHS
Now, do the addition and subtraction
Now, divide both sides by 3.
Now, put the value of x in the values of EF and FG given.
Answers:
EF is 3 and FG is 9.
Hope you could understand.
If you have any query, feel free to ask.