To represent the situation mathematically, we need to establish the total budget and the daily spending.
You start with a total budget of $300 and plan to spend $27 per day for snacks and souvenirs. Therefore, the amount spent after \( x \) days can be expressed as \( 27x \).
The equation representing the amount of spending money you have left in your budget after \( x \) days is given by:
\[ y = 300 - 27x \]
Here, \( y \) is the amount of spending money left, \( 300 \) is the initial budget, \( 27 \) is the daily spending, and \( x \) is the number of days you have been on the trip.