How does each society determine who will consume what is produced

How does each society determine who will consume what is produced