In a pure market economy, the basic question of which goods and services should be produced is answered by:
The law of supply and demand drives this choice.
This means that consumer preferences and the willingness of producers to supply products determine what is produced in the economy.