You have the segment EG and point F in it.
Point F separates the segment in two smaller ones EF and FG.
You can say that
EG= EF + FG
You have to replace the name of the segments with their values to get the equation:
Now that you have a one unknown equation you can clear X
The value of x is 3.6