<b>Appoint for yourselves [in all of your gates] (Deuteronomy 16:18)</b> You should appoint judges in all the gates; as courts convene twice a week in the cities, on Monday and on Thursday. And if the law was stuck in front of them (they were not able to determine it), they would ask the [high] court in the chamber of hewn stone. "And they shall judge the nation with righteous judgement," that they should incline the people towards righteousness. Rabbi Yehudah beRabbi Shalom said, "That they should incline towards and advocate merit for [the Jewish people] in front of the Holy One, blessed be He." From who do you learn [this]? From Gidon ben Yoash. As Israel was in distress in his days, and the Holy One, blessed be He, sought a person to advocate merit about them. But He did not find [anyone], as the generation was poor in commandments and in good deeds. Once he found the merit in Gidon, that he advocated merit about them, the angel immediately revealed himself to [Gidon]; as it is stated (Judges 6:12-14), "And the angel of the Lord [was revealed] to him.... And he said to him, 'Go with this strength of yours,'" with the strength of the merit that you advocated about My children. This is, "And they shall judge the nation with righteous judgement," that they should advocate merit for the generation.