I've been working on a hobby coding project in my free time and I've run into quite an interesting problem, which I'm not completely sure how to solve. The problem is roughly stated as follows:
There are two sets, set A and set B. Set A contains the numbers from 1-10 inclusive, and set B contains the numbers from 11-20 inclusive. What are all the ways to uniquely arrange 4 objects from set A and 2 objects from set B, in a linear fashion?
So I'm thinking that this is a permutation problem.
P(10,4) is the unique number of ways to pick and arrange four numbers from set A, and
P(10,2) is the unique number of ways to pick and arrange two numbers from set B. Now, you need to uniquely combine the four numbers from A, and two numbers to B. So you would need to find the number of unique ways that you can arrange four values from A and two values from B. But how would you combine these values to find the total number of solutions?
I think I'm on the right track to finding the number of total combinations. However, what's more important is that I develop an algorithm to actually be able to list all the different permutations. I understand that this may be unrelated to the Math StackExchange, but I am hoping that someone can help with either of these problems.
Thank you very much!