Solve for g7h+f=2h+g
g+2h=7h+f (just reorganized the equation)g= 5h+f
\(7h+f=2h+g \\ \\ g=7h+f-2h \\\\\boxed{g=5h+f}\)