12 gallons of gas can be bought from $30 where gas costs $2.42 per gallon.
Solution:
The gallons of gas bought can be calculated by dividing the total amount possessed by cost of gas per gallon.
Here total amount possesses is $30 and cost of gas per gallon is $2.42.
Gallons of gas bought =

