A car traveled 180 miles and used 6 gallons of gas. If the same car traveled 1,260 miles at the same rate, how many gallons of gas would be used?​