Complex sentence: Parents unable to educate their children would leave them in front of the church and the church would then take complete responsibility of the orphan.
Split into simpler sentences: Parents unable to educate their children would leave them in front of the church. The church would then take complete responsibility of the orphan.