When two people each have items the other wants, both people can determine the values of the items and provide the amount that results in an optimal allocation of resources. Therefore, if an individual has 20 pounds of rice that he values at $10, he can exchange it with another individual who needs rice and who has something that the individual wants that's valued at $10. A person can also exchange an item for something that the individual does not need because there is a ready market to dispose of that item.
In Spain (particularly the Catalonia region) there is a growing number of exchange markets. These barter markets or swap meets work without money. Participants bring things they do not need and exchange them for the unwanted goods of another participant. Swapping among three parties often helps satisfy tastes when trying to get around the rule that money is not allowed.
The same thing holds true of all other possessions; for barter, in general, had its original beginning in nature, some men having a surplus, others too little of what was necessary for them: hence it is evident, that the selling provisions for money is not according to the natural use of things; for they were obliged to use barter for those things which they wanted; but it is plain that barter could have no place in the first, that is to say, in family society; but must have begun when the number of those who composed the community was enlarged: for the first of these had all things in common; but when they came to be separated they were obliged to exchange with each other many different things which both parties wanted.
No academics I talked to were aware of any evidence that barter was actually the precursor to money, despite the story’s prevalence in economics textbooks and the public’s consciousness. Some argue that no one ever believed barter was real to begin with—the idea was a crude model used to simplify the context of modern economic systems, not a real theory about past ones.