The Use of the Production Function and Linear Programming in Valuation of Intermediate Products