A pack of 30 pencils cost $7.97 and a pack of 12 pencils cost $4.77. which is better? how do you know?

The better one is a pack 30 pencils that costs $7.97. How do I know I divide 7.97/30 and got 0.26567. I did the same thing to the other one and got 0.3975. The one that is smaller is the best one.