The Ishmaelites (members of the Midianite merchants [caravan from Gilead]) saved Joseph & sold Joseph to Potiphar.
 Once Yosef was in the pit, his brothers had a meal & saw [who] coming? [Bereishit 37:25] * יִשְׁמְעֵאלִ֔ים Yishmaelim = "Ishmaelites".
 What does Yehudah immediately suggest to his brothers? [Bereishit 37:27] "Come, let us sell him to [the] Ishmaelites" ( לְכ֞וּ וְנִמְכְּרֶ֣נּוּ לַיִּשְׁמְעֵאלִ֗ים )
 Who lifts Yosef out of the pit - to sell Yosef to Yishmaelim? [Bereishit 37:28] * אֲנָשִׁ֨ים מִדְיָנִ֜ים Mideyanim
"Then Midianite men, merchants, passed by, and they pulled and lifted Joseph from the pit, and they sold Joseph to the Ishmaelites for twenty silver [pieces], and they brought Joseph to Egypt." ( וַיַּֽעַבְרוּ֩ אֲנָשִׁ֨ים מִדְיָנִ֜ים סֹֽחֲרִ֗ים וַיִּמְשְׁכוּ֙ וַיַּֽעֲל֤וּ אֶת־יוֹסֵף֙ מִן־הַבּ֔וֹר וַיִּמְכְּר֧וּ אֶת־יוֹסֵ֛ף לַיִּשְׁמְעֵאלִ֖ים בְּעֶשְׂרִ֣ים כָּ֑סֶף וַיָּבִ֥יאוּ אֶת־יוֹסֵ֖ף מִצְרָֽיְמָה )
 If Genesis 37:28 states Mideyanim sold Yosef to Ha-Yishmaelim -- Are the Ishmaelites described in Genesis 37:36 as the "Mitsraim" [Egyptians] or are the-Ishmaelites members of the merchants [from Midian] ?
"And The-[Midianites] sold him to-[Egypt], to-[Potiphar], Pharaoh's chamberlain, chief of the slaughterers. ( וְהַ֨מְּדָנִ֔ים מָֽכְר֥וּ אֹת֖וֹ אֶל־מִצְרָ֑יִם לְפֽוֹטִיפַר֙ סְרִ֣יס פַּרְעֹ֔ה שַׂ֖ר הַטַּבָּחִֽים )
When we fast forward to Bereishit 39:1, we read : "Now Joseph had been brought down to Egypt, and Potiphar, Pharaoh's chamberlain, chief of the slaughterers, an [Egyptian man], purchased him from The-Ishmaelites who had brought him down there." ( וְיוֹסֵ֖ף הוּרַ֣ד מִצְרָ֑יְמָה וַיִּקְנֵ֡הוּ פּֽוֹטִיפַר֩ סְרִ֨יס פַּרְעֹ֜ה שַׂ֤ר הַטַּבָּחִים֙ אִ֣ישׁ מִצְרִ֔י מִיַּד֙ הַיִּשְׁמְעֵאלִ֔ים אֲשֶׁ֥ר הֽוֹרִדֻ֖הוּ שָֽׁמָּה )
 We are told Ha-Yishmaelim הַיִּשְׁמְעֵאלִ֔ים sold Yosef to an אִ֣ישׁ מִצְרִ֔י [Egyptian Man] named Potifar פּֽוֹטִיפַר in Genesis 39:1.