first multiply the outside numbers by both the numbers in the ()
10xg=10g 10x5=50 2xg=2g 2x9=18
then combine like terms
10g+50=2g+18
8g=32
then divide
g=4