create two permutation problems