The placement when two ambiguous hermaphrodites are present with men.
Chapter on Imamate and Congregational Prayer
Al-Mughni
Book of Prayer
Primary text
If two ambiguous hermaphrodites are present with men, the ruling established by our scholars is that the two khunthas stand in a row behind the two men, because they might both be women. However, it is also considered that they might stand with the men because one of them might individually be a man, which would invalidate his prayer if he stood alone.
Supporting text
If women are present with them, the women stand behind the khunthas.