TT #20 · Parshas Vayeishev · Passuk 37:28
And there passed by Midyanite merchants; and they drew and lifted up Yosef out of the pit, and sold Yosef to the Yishmaelim for twenty pieces of silver. And they brought Yosef into Egypt.
Torah Temimah points to the same Yerushalmi / midrashic cluster linking the twenty silver to the half-shekel (taba).
Sefaria — Yerushalmi Shekalim 2:3
Rabbi Levi said: How much fell to the share of each of them? A taba (half-shekel). Therefore the Torah commanded that each person give his shekel as a taba.
Category E — Analogy / numerical correspondence.
Method — Rabbi Levi calculates that each brother received a half-shekel from Yosef’s sale, and connects that amount to the Torah’s later requirement that each person give a half-shekel. The sale price is interpreted as the measure behind the later contribution.
Textual trigger — The twenty pieces of silver for Yosef in Bereishis 37:28, divided among the brothers and connected with the half-shekel contribution.
Each brother’s share of the twenty silver was a half-shekel (taba). This becomes the basis for the mitzvah that every person give a half-shekel.