For this case we have the following equation:

Applying distributive property on the left side of the equation we have:

Subtracting
to both sides of the equation:

Subtracting 10 to both sides of the equation:

Multiplying by 18 on both sides:

Dividing between 7 on both sides:

Thus, the value of g is -18.
ANswer:
