232k views
4 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 Buzut
by
4.4k points

1 Answer

3 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 Hagen Von Eitzen
by
3.9k points