To solve this problem it is necessary to use proportions. In this case, take x as the number of miles that you could drive on 65 gallons of gas.
It means that x is to 65 as 510 is to 20:
It means that you could drive 1657.5 miles on 65 gallons of gas.