By receiving the sacrament of Eucharist after good confession and absolution, doing penance, going on pilgrimages and other activities for indulgences (time reduced in Purgatory), by good works and charity, and by prayer.
they made sure they would get to heaven by confessing their sins.
They went on pilgrimages to make sure that God would send them to heaven instead of hell.
The third period of the Middle Ages was the Late Middle Ages. The first is called the Early Middle Ages or the Dark Age. The second period was the High Middle Ages.
middle ages
There was no nylon in the Middle Ages. Nylon was invented in the 20th century; the Middle Ages ended in the 15th.