Hello!
Assuming she wants to buy enough pens so each child in her class gets 1 pen, she would need to buy 3 packs.
Three packs contains 30 pens, so each child would receive a pen, and there would be 6 left over.
I hope this helps you! Have a lovely day!
- Mal