To find out how many shoppers were buying food for a week or more, you can use the percentage of shoppers and the total number of shoppers surveyed.
Given that 40% of shoppers were buying food for a week or more, you can calculate the number of shoppers by applying the percentage to the total number of shoppers surveyed:
\[ \text{Number of shoppers} = \text{Total shoppers} \times \frac{\text{Percentage}}{100} \]
Substituting the values:
\[ \text{Number of shoppers} = 50 \times \frac{40}{100} = 50 \times 0.40 = 20 \]
So, 20 shoppers were buying food for a week or more.