Economics is the study of how people allocate scarce resources for production, distribution, and consumption, both individually and collectively. The two branches of economics are microeconomics and macroeconomics. Economics focuses on efficiency in production and exchange. Demand and supply is one of the most integral aspects of economics. The theory defines the relationship between the price of the commodity and the willingness of the buyers to either buy or sell that commodity. The theory of demand and supply is based on the law of demand and the law of supply. The two laws come together to determine the actual market price and the volume of commodities in a market. The law of supply and demand combines two fundamental economic principles describing how changes in the price of a resource, commodity, or product affect its supply and demand.