Supply and demand of the multiproduct firm