To write a proportion that shows how much 5 gallons of gas will cost (using \( x \) to represent the unknown cost), you can use the first option:
\[ \frac{15}{45} = \frac{x}{5} \]
This proportion compares the amount of gas to its cost for both cases: the 15 gallons for $45 and the 5 gallons for \( x \).