Supply and demand form the cornerstone of economic theory, governing the allocation of resources, prices…