This is just by way of postscript and supplement to a (good!) answer already provided.
The lists of tribes given in the Hebrew Bible/Old Testament typically are as @Niobius describes: Joseph's sons, Ephraim and Manasseh, replace both Joseph and Levi, most obviously in the tribal settlements during the "conquests" of Joshua/Judges. This is also how they appear in the tribal allotments in Ezekiel's vision of a future renewed Israel (Ezekiel 48:1-7 + 23-27, for the seven tribes north of the holy city, followed by the five tribes to the south). The principle is even spelled out at Ezekiel 47:13 (ESV):
Thus says the Lord GOD: "This is the boundary by which you shall divide the land for inheritance among the twelve tribes of Israel. Joseph shall have two portions. ..."
This is according to the system of inheritance, summarized in 48:29 -
29 This is the land that you shall allot as an inheritance among the tribes of Israel (lĕšibṭê yiśraʾel), and these are their portions, declares the Lord GOD.
However, the holy city - renewed Jerusalem - is laid out in a square (Ezek 48:16), with three gates on each of the four sides = twelve gates in all. These, in distinction from the land allocation, correspond to the twelve tribes as sons rather than "units of inheritance", reverting to Joseph and Levi (Ezek 48:30-34):
30 "These shall be the exits of the city: On the north side, which is to be 4,500 cubits by measure,
31 three gates, the gate of Reuben, the gate of Judah, and the gate of Levi, the gates of the city being named after the tribes of Israel (ʿal-šĕmôt šibṭê yiśraʾel).
32 On the east side, which is to be 4,500 cubits, three gates, the gate of Joseph, the gate of Benjamin, and the gate of Dan.
33 On the south side, which is to be 4,500 cubits by measure, three gates, the gate of Simeon, the gate of Issachar, and the gate of Zebulun.
34 On the west side, which is to be 4,500 cubits, three gates, the gate of Gad, the gate of Asher, and the gate of Naphtali."
So clearly both "tribal" configurations were known and remembered (compare 48:29 and 48:31!), even though the "Ephraim/Manasseh" system emphatically predominates.