Determination of the optimal volume of goods and a retail price of the sale of the continuously spoiling product