Situation: The company was facing challenges in understanding the profitability of individual customers. Customer…