Current location - Education and Training Encyclopedia - Graduation thesis - Mathematical modeling problem
Mathematical modeling problem
The starting price of 3km 10 yuan, 2 yuan per kilometer, and the profit per kilometer above 10 will be increased by 50%, and the profit per kilometer will be increased by 30% during the special period (23: 00 ~ 6: 00).

Assuming that the mileage is s and the cost is x, when s is greater than 10, it will be charged according to the charging standard.

X =10+(10-3) * 2+(s-10) * 3, taking S=20 as an example,

X= 10+ 14+30=54 yuan.

If you take it in two steps, it will cost you.

2*( 10+ 14)=48 yuan,

So it will save money to fight separately.