If you want to learn a lot more about how economies worked in the past, I highly recommend the book “Debt: The First 5,000 Years” by David Graeber, author of “Bullshit Jobs.” It goes into this topic, and then presents a very detailed world history of economic systems from the perspective of an anthropologist.