解:设总运价为y元
A地运至甲地的煤x万吨,运往乙地为(60-x) 万吨
B地运往甲地的煤为(50-x)万吨,运往乙地为40-(50-x)=(x-10)万吨
0≤x≤50,60-x≥0,50-x≥0,x-10≥0
解得10≤x≤50
y=2x+3(60-x)+2.5(50-x)+2.5(x-10)
=-x+280
∵y=-x+280为减函数
∴当x=50时y最小
y=-50+280=230
50,180千
2X 3(60-X) 2.5(40-X)2.5[40-(60-X)]=230-X
X=50时有最小值180
1楼正解