Explain the central problem for whom to produce'

Under this problem, the decision is to be taken for whom, we should produce commodities, i.e. for the rich or for the poor? All goods and services cannot be produced for everyone. If we produce for the rich, who have capacity to buy, then poor people will suffer from starvation. On the other hand, if we produce for the poor for the sake of social justice, then we will have to consider, do they have resources to buy? It basically deals with problem of distribution of income among factors of production.