"If I put my hand on this sugar, grab it, and move it to my mouth, then this other part of my brain will release reward chemicals" = good plan.
Concepts become abstracted over time, like "eat" as a shortcut for the above. "Popular" could be another shortcut for something like "many people will smile at me, and not hurt me, causing this other part of my brain to release reward chemicals and not punishment chemicals" = good plan.