when three times the distance to he finish line is increased by 5km, the total kilometers covered in the race will be between 50 and 89 km

I'm not sure what you are asking.

50 < 3d+5 < 89