2g-tm=5m-gh (solve for m)

5m+tm=2g+gh

m(5+t)=g(2+h)
divide both sides by 5+t