Olá! Segue abaixo minha solução para o problema Álcool ou Gasolina?
<meta charset="UTF-8">
<h3>Alcohol or Gasoline?</h3>
<script>
var carTank = 40;
var pathWithGasoline = 480;
var pathWithAlcohol = 300;
var gasolineConsumption = pathWithGasoline/carTank;
var alcoholConsumption = pathWithAlcohol/carTank;
document.write("The consumption of gasoline spent was $ " + gasolineConsumption + " Km/L." + " <br>");
document.write("The consumption of alcohol spent was $ " + alcoholConsumption + " Km/L.");
</script>