The average production cost per gallon of producing x\displaystyle {x} gallons of gas is modeled by the function C(x)=2.0+5000x\displaystyle {C}{\left({x}\right)}={2.0}+\frac{{5000}}{{x}} . If the average production cost is $7 per gallon, how many gallons of gas are being produced?