Ethanol is a fuel that is spent faster the car engine relative to gasoline, to see which yields more we divide the price of a liter of ethanol by the value of a liter of gasoline, if the result is greater than 0.7 refuel with gasoline if less fuel with ethanol.