Answer:
w=6g-40
Explanation:
We have here a two variables equation, so it does not have a singular solution; it is just possible to isolate one of the variables. We start from:

So, multiply each part of the equation by 6:

Finally, subtract 40 from each part of the equation.

As you see, variables isolation requires to sum, subtract, multiply or divide depending on what you need.