Rick has d dollars. The formula for the number of gallons of gasoline that Rick can buy with d dollars is given by g = d/3. The formula for the numbers of miles that Rick can drive on g gallons of gasoline is given by m =21g. How many miles can Rick drive on $8 worth of gasoline?