How to make a slider with 2 values

I want to maker a game with 2 teams scoring points, the one team with majority of points wins. I could not find an answer to the question but i found a game online with the slider i wanted. Here is a picture.180606-screenshot-2021-05-12-184924.png
How do I get this slider?

teamAText = teamAPoints.ToString();
teamBText = teamBPoints.ToString();
slider.normalizedValue = teamAPoints / (teamAPoints + teamBPoints);