How personalized ads work

I'm especially looking at you facebook. Since you think I like: Axes, Humans, Horses and Learning