solve combinatoric selections