well, first you need to distribute the .5 to everything in the parenthesis. so you would come out with:
.5g + 5 = 50
now, you want to isolate the variable. so subtract 5 from both sides. You're left with
.5g = 45
now, divide 45 by .5
you're left with g = 90!