The starting price of a taxi in a city is 5 yuan (within 3 km), and the average price is 1.5 meters per kilometer for more than 3 km. Xiaomin's family pays 8.9 yuan for the distance between them when they go to grandma

The starting price of a taxi in a city is 5 yuan (within 3 km), and the average price is 1.5 meters per kilometer for more than 3 km. Xiaomin's family pays 8.9 yuan for the distance between them when they go to grandma

It can be seen from the title that Xiaomin spent 8.9-5 = 4.9 yuan after starting 3km. Because it was more than 1.5 yuan per kilometer for 3000 meters, he walked 3.9 / 1.5 = 2.6km, so the distance was 3 + 2.6 = 5.6km
You can also set the starting price directly and then walk x kilometers
5+1.5X=8.9
1.5X =8.9-5
1.5X =3.9
X =3.9/1.5
X =2.6
2.6+3=5.6KM