Need help solving x

The coefficient of x in the equation is 1/(300 grams). Multiply by the reciprocal of that, which is (300 grams).
x = (300 grams)×(2 grams)/(100 grams) = (300×2/100) grams = 6 grams
_____
This is the way you solve any equation where x is multiplied by some value in the only term on one side of the equal sign.