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