Thank you for the opportunity to help you with your question!

Buying 20 yellow math pencils is better because of the cost per unit. Cost per unit of the yellow pencils is $0.0625 while cost per unit of the rainbow pencil is $0.073.

Please let me know if you need any clarification. I'm always happy to answer your questions.