The answer would be about 0.111
Remember, we can do anything to an equation as long as you do it to both sides
and distributive proeprty, reversed
ab+ac=a(b+c)
xm=x+z
minus x from both sides
xm-x=z
xm-1x
undistribute x
x(m-1)=z
divide both sides by (m-1)
The answer is 8. 40 / 31 = 1.29032258. Multiply that by 6 and you have 7.74193548. Round up because you can't buy 7.7 cans of dog food.