M&Ms?
I figure they were birth control pills. The kid knew the teacher was hitting on him about having sex and wanted to be prudent .