Production planning and inventory control for a two-product recovery system