The economic question of "how to produce" refers to, which techniques are to be adopted? This question is important because the choice of technique depends on the prices of the factors of production.
That is, if labour is cheap and capital is expensive, a labor-intensive technique would be considered and vice-versa. The prices of labour and capital are determined by the demand for and supply of labour and capital respectively.