Complex sentence: Many of the country's typical pastries were created in Middle Ages monasteries by nuns and monks and sold as a means of supplementing their incomes.
Split into simpler sentences: Many of the country's typical pastries were created in Middle Ages monasteries. Other pastries were created by nuns and monks, which they sold as a means of supplementing their incomes.