Question 458759
You lost "t" in your equation

factor
m*(w+g)=t
m=t/(w+g)