In a capitalist economy, the economic problem of what goods to produce is decided mainly…