On a​ cross-country trip, a car uses 5 gallons of gas for every 140 miles it travels. How many gallons of gas does the car use if it travels 2802 ​miles? How far can the car travel if it uses 20 gallons of​ gas?

5/140 = x/2802

Solve for x.

140/5 = x/20

Also, solve for x.