If Jack wants every friend to get an even amount of cookies they will each get 418 cookies. There will be 18 cookies left for Jack to save for later
8,378 cookies divided by 20 (19 friends + Jack) = 418.9
418 x 20 = 8,360
8,378 - 8,360 = 18 extra cookies