To find out how many apples were in each bag, we can divide the total number of apples by the number of bags.
Total number of apples = 20 Number of bags = 5
So, we calculate:
\[ \text{Number of apples in each bag} = \frac{\text{Total number of apples}}{\text{Number of bags}} = \frac{20}{5} = 4 \]
Therefore, there are 4 apples in each bag.