Pacioli moved away from Sansepolcro while he was still a young lad.Certainly Pacioli become acquainted with the duke of Urbino at some time during this period.In 1489, after two years in Rome, Pacioli returned to his home town of Sansepolcro.Not all went smoothly for Pacioli in his home town, however.Pacioli travelled to Venice in 1494 to publish the Summa.Pacioli studied the problem of points, see, although the solution he gave is incorrect.At Milan Pacioli and Leonardo quickly became close friends.Pacioli and Leonardo fled together in December 1499, three months after the French captured Milan.From Venice they returned to Florence, where Pacioli and Leonardo shared a house.Pacioli was appointed to teach geometry at the University of Pisa in Florence in 1500.