263,326 views
44 votes
44 votes
⚠️⚠️write a function for the situation.a gas station sells premium gasoline gasoline for $2.39 per gallon. what is the cost C of g gallons of gas .

User Ferflores
by
3.2k points

1 Answer

26 votes
26 votes

If the cost of one gallon of gasoline is $2.39, to find the price of 'g' gallons of gasoline, we just need to multiply the number of gallons (g) by the cost of one gallon ($2.39), and that will be the cost C.

So we have the following equation:


C=2.39g

It's also possible to find this equation using a rule of three:


\begin{gathered} 1\text{ gallon}\to\text{\$}2.39 \\ g\text{ gallons}\to C \\ (1)/(g)=(2.39)/(C) \\ C=2.39g \end{gathered}

User Zachary Garrett
by
2.4k points