זבחים ח:ב · Zevachim 8:2

קָדָשִׁים בְּקָדָשִׁים מִין בְּמִינוֹ, זֶה יִקְרַב לְשֵׁם מִי שֶׁהוּא וְזֶה יִקְרַב לְשֵׁם מִי שֶׁהוּא. קָדָשִׁים בְּקָדָשִׁים, מִין בְּשֶׁאֵינוֹ מִינוֹ, יִרְעוּ עַד שֶׁיִּסְתָּאֲבוּ, וְיִמָּכְרוּ, וְיָבִיא בִדְמֵי הַיָּפֶה שֶׁבָּהֶן מִמִּין זֶה, וּבִדְמֵי הַיָּפֶה שֶׁבָּהֶן מִמִּין זֶה, וְיַפְסִיד הַמּוֹתָר מִבֵּיתוֹ. נִתְעָרְבוּ בִבְכוֹר וּבְמַעֲשֵׂר, יִרְעוּ עַד שֶׁיִּסְתָּאֲבוּ, וְיֵאָכְלוּ כִּבְכוֹר וּכְמַעֲשֵׂר. הַכֹּל יְכוֹלִין לְהִתְעָרֵב, חוּץ מִן הַחַטָּאת וּמִן הָאָשָׁם:
In a case where sacrificial animals were intermingled with other sacrificial animals, if it was an animal of one type of offering with animals of the same type of offering, one shall sacrifice this animal for the sake of whoever is its owner and one shall sacrifice that animal for the sake of whoever is its owner, and both fulfill their obligation. In a case where sacrificial animals were intermingled with other sacrificial animals, where an animal of one type of offering was intermingled with animals not of the same type of offering, e.g., two rams, where one is designated as a burnt offering and one as a peace offering, they shall graze until they become unfit for sacrifice and then they shall be sold. And from the money received in the sale, the owner shall bring another offering of the monetary value of the highest-quality animal among them as this type of offering, and another offering of the monetary value of the highest-quality animal among them as that type of offering, and he will lose the additional expense of purchasing two highest-quality animals, when he had sold only one highest-quality animal, from his own assets. In a case where sacrificial animals were intermingled with a firstborn offering or with an animal tithe offering, they shall graze until they become unfit for sacrifice and they shall both be eaten as a firstborn offering or as an animal tithe offering. All offerings can become indistinguishably intermingled with each other, except for a sin offering and a guilt offering, as the Gemara will explain.

Word-by-word Breakdown (מילים ושרשים)

קָדָשִׁים → sacrificial [ק - ד - ש]בְּקָדָשִׁים → were intermingled with [ק - ד - ש]מִין → type [מ - י - ן]בְּמִינוֹ → of the same type [מ - י - ן]זֶה → this יִקְרַב → one shall sacrifice [ק - ר - ב]לְשֵׁם → for the sake of [ש - מ - ם]מִי → whoever שֶׁהוּא → is [ה - י - ה]וְזֶה → and this יִקְרַב → one shall sacrifice [ק - ר - ב]לְשֵׁם → for the sake of [ש - מ - ם]מִי → whoever שֶׁהוּא → is [ה - י - ה]קָדָשִׁים → sacrificial [ק - ד - ש]בְּקָדָשִׁים → were intermingled with [ק - ד - ש]מִין → type [מ - י - ן]בְּשֶׁאֵינוֹ → not [א - י - ן]מִינוֹ → of the same type [מ - י - ן]יִרְעוּ → they shall graze [ר - ע - ה]עַד → until שֶׁיִּסְתָּאֲבוּ → they become unfit [ס - ת - א]וְיִמָּכְרוּ → and they shall be sold [מ - כ - ר]וְיָבִיא → and he shall bring [ב - ו - א]בִדְמֵי → of the monetary value of [ד - מ - ה]הַיָּפֶה → the highest-quality [י - פ - ה]שֶׁבָּהֶן → among them מִמִּין → of type [מ - י - ן]זֶה → this וּבִדְמֵי → and of the monetary value of [ד - מ - ה]הַיָּפֶה → the highest-quality [י - פ - ה]שֶׁבָּהֶן → among them מִמִּין → of type [מ - י - ן]זֶה → this וְיַפְסִיד → and he will lose [פ - ס - ד]