The equation f(g)=40g gives the distance in miles, f(g), that a car can travel using g gallons of gas. If the car has gone 180 miles, how much gas was used?