Yb = 60(24-x)+40[30-(24-x)]= 1680-20x
Total freight W=Ya+Yb=2680+ 10x.
Minimum, x minimum.
∵x & gt; = 0 20-x & gt; = 0 24-x & gt; =0 30-(24-x)>=0
∴0<; = x & lt=20
X=0 ∴, that is, all villages A are transported to factory D, 24 tons of villages B are transported to factory C, and 6 tons are transported to factory D ... The total freight is at least 2680 yuan.