The amount of gas consumed by a car varies directly with the miles driven. The car traveled 180 miles and used 6 gallons of gas. If the car traveled 1,,260 miles, how many gallons of gas would be used?
A 7 gallon
B 30 gallon
C 42 gallon
D 210 gallon