Complex sentence: Each of these babies, twelve of them in total, were taken up by people belonging to different castes, making the legendary Parayi petta panthirukulam or literally, the twelve castes borne out of the pariah woman.
Split into simpler sentences: Each of these babies were taken up by people belonging to different castes, twelve of them in total. Thus each of these babies grew up in that particular caste, making the legendary Parayi petta panthirukulam or literally, the twelve castes borne from the pariah woman.