Answer:
To solve this problem using arithmetic, we can follow the steps as given:
Start with the total number of pens, which is 27.
Subtract the 3 pens left over from the total number of pens, which gives us 27 - 3 = 24 pens.
Divide the result by the number of bags, which is 6, to get the number of pens in each bag.
So, 24 pens divided equally among 6 gift bags would be:
24 / 6 = 4 pens in each gift bag.
Therefore, Marsha put 4 pens in each gift bag.