'What to produce' in a capitalist economy is determined by:
In a socialist economy, the central problem of 'for whom to produce' is solved on the basis of: