The psychology of syllogisms