Reference for Sanhedrin 9:3
רוֹצֵחַ שֶׁנִּתְעָרֵב בַּאֲחֵרִים, כֻּלָּן פְּטוּרִין. רַבִּי יְהוּדָה אוֹמֵר, כּוֹנְסִין אוֹתָן לְכִפָּה. כָּל חַיָּבֵי מִיתוֹת שֶׁנִּתְעָרְבוּ זֶה בָזֶה, נִדּוֹנִין בַּקַּלָּה. הַנִּסְקָלִין בַּנִּשְׂרָפִין, רַבִּי שִׁמְעוֹן אוֹמֵר, נִדּוֹנִין בִּסְקִילָה, שֶׁהַשְּׂרֵפָה חֲמוּרָה. וַחֲכָמִים אוֹמְרִים, נִדּוֹנִין בִּשְׂרֵפָה, שֶׁהַסְּקִילָה חֲמוּרָה. אָמַר לָהֶן רַבִּי שִׁמְעוֹן, אִלּוּ לֹא הָיְתָה שְׂרֵפָה חֲמוּרָה, לֹא נִתְּנָה לְבַת כֹּהֵן שֶׁזִּנְּתָה. אָמְרוּ לוֹ, אִלּוּ לֹא הָיְתָה סְקִילָה חֲמוּרָה, לֹא נִתְּנָה לַמְגַדֵּף וְלָעוֹבֵד עֲבוֹדָה זָרָה. הַנֶּהֱרָגִין בַּנֶּחֱנָקִין, רַבִּי שִׁמְעוֹן אוֹמֵר, בְּסַיִף. וַחֲכָמִים אוֹמְרִים, בְּחֶנֶק:
If a murderer were mixed in with others, all are not liable. [e.g., If two men were standing and an arrow went out from between them and killed someone, both are not liable. And even if one of them were known for saintliness, so that it is certain that he did not shoot the arrow, still, the other is not made liable on this presumption.] R. Yehudah says: They are incarcerated. [Our Mishnah is defective. It was taught thus: "And if an ox whose judgment (for killing a man) were pronounced became intermixed with other oxen, they are all stoned." For, perforce, it is forbidden to derive benefit from all of them — even if they were a thousand — because of the one intermixed with them. Therefore, they are all stoned, so that the mitzvah of stoning be satisfied with the one liable to it.] R. Yehudah says: They are incarcerated. It is not necessary to stone them, but they are all gathered into a room and they die of hunger. The halachah is not in accordance with R. Yehudah.] All those liable to judicial death penalty who became intermixed with one another are given the lesser penalty. If men sentenced to be stoned became intermixed with others sentenced to be burned, R. Shimon says: They are stoned, for burning is more severe. The sages say: They are burned, for stoning is more severe. R. Shimon said to them: "If burning were not more severe, it would not be administered to a Cohein's daughter who committed adultery." They said to him: If stoning were not more severe, it would not be administered to a blasphemer and an idolator!" If men sentenced to decapitation became intermixed with others sentenced to strangulation, R. Shimon says (they are to be decapitated) with the sword, [strangulation being more severe.] The sages say: They are to be strangled, [decapitation begin more severe].