For the given problem, the only detail that we can extract is 2.0 gallon. We are task to convert this into cubic centimeter. The first thing to do is convert gallon to cubic inches, which is 1 gal=231 cubic inches. Then, 1 in=2.54 cm. Hence, for 1 cubic inches= (2.54)^3 cubic cm=16.387064 cubic cm.
So,
2gal x 231cubic inches/(1gal) x 16.387064 cubic cm/(1inc)=7570.823568 cubic cm.
Therefore, 2 gal of gas equals to approximately 7571 cubic cm.