Since M is exactly between F and G, FM=FG.
Therefore, you can set the two expressions equal to each other. Solve.
3x-5=5x-6
5x-3x=6-5
2x=1
x=1/2
Now that we've found x, we can plug that into one of the expressions and multiply the result by two to find the length of the whole line.