Sam paid $24.58 for pens and pencils. If pens cost 9 cents each and pencils cost 4 cents each, at most how many pens did Sam purchase?
270 pens and 7 pencils