Answer:
7 hours
Explanation:
From the given information, we can determine that the snack supply has a half-life of 1 hour. This means that the decay in supply (rather, the rate of people buying snacks) is relative to the current supply.
In other words, every hour, the supply decreases by 1/2 of its original amount at the start of the hour.
We can represent this with the half-life equation:

where N(t) is the current amount of something (at time t), N₀ is the initial amount (the amount when time t = 0), and h is the supply's half life.
We are given the following values:
We are solving for time t when
:
↓ plugging in the known values

↓ simplifying the exponent ...


↓ dividing both sides by 128

↓ taking the
of both sides
![\log_(\, 1/2)\left[(1)/(128)\right] = t](https://img.qammunity.org/2024/formulas/mathematics/college/8unp2247ymmzqn8y2f6i6rnbvlbjseyiu8.png)
↓ simplifying the left side ...


↓ evaluating the left side

So, it took 7 hours for the snack bar to only have 1 bag of snacks left.