Application of mass and energy balance regularities to product formation