There's no hard rules about which combinations will work well. I've just learned to try it out and see what happens. I've now got a 12-28 10-speed cassette made from 3 cassettes of two brands which shifts extremely well, but other more subtle changes I've made to some cassettes have caused shifting problems.