Answer :

g+2h=7h+f (just reorganized the equation)
g= 5h+f
[tex]7h+f=2h+g \\ \\ g=7h+f-2h \\\\\boxed{g=5h+f}[/tex]