Complex sentence: All orphans, mentally ill and the poor elderly were placed into these living commons where they could be given shelter and daily meals.
Split into simpler sentences: All orphans, mentally ill and the poor elderly were placed into these living commons. These poorhouses gave a place where they could be given shelter and daily meals.