Need help with some end of game widget

How do i make it so when a team has most amount of flags, the end of game widget says that team got the most amount of flags?

If you go into the game settings and make the score track a property, and whenever a flag is captured it increases each team’s property by 1, at the end of the game I think it should say which team had the most.