The correct equation that shows the relationship between the number of gallons of gas \( g \) and the total amount of money spent \( s \) is:
\[ s = 3g \]
This equation means that the total amount spent \( s \) is equal to the price per gallon ($3) multiplied by the number of gallons \( g \) that Anja buys.