 The family was of limited means and could not afford education for the children beyond what was provided by the public school system.Pastori excelled in mathematics, which was encouraged by one of her teachers, who aided her in getting a scholarship to Maria Agnesi School, a magisterial school (similar to a teacher's college).After completing her studies at the magisterial school, Pastori then went on to teach elementary school near Milan.