Mileage is an important performance indicator of an automobile that determines the distance it can travel with a particular amount…