Short version, the game winning balls go in center, in 9 and 10 the 1 goes in front, rest random, except in 10 ball in some rules the 2 and 3 are on the corners.
8 ball, solid and stripe on the corners, rest is random but try to not to cluster things too much like having all the solids touching or something.