Original: With Ludovico Sforza overthrown , Leonardo , with his assistant Salai and friend , the mathematician Luca Pacioli , fled Milan for Venice , where he was employed as a military architect and engineer , devising methods to defend the city from naval attack .
Simplified: Leonardo left Milan with his servant Salai and a friend , Luca Pacioli , who was a mathematician .