To understand what a market economy is you must learn about the forces of demand and supply.
The interaction of the demand and supply forces create a market for a product. The market settles the sale between buyer and seller, or consumer and producer. The demand and supply.
The market economy works because of the way consumers and producers go about their business.
Producers make what they can sell. This means consumer demand drives what the economy makes.