Solve the formula for g\displaystyle {g}

7g+gww=n\displaystyle \frac{{{7}{g}+{g}{w}}}{{{w}}}={n}

g=\displaystyle {g}=