write an equation that I can use to find the distance I can drive on any number of gallons of gas

gal * miles/gal = miles

so, if you know your gas mileage, just do the math.