I have 2 ordered sets: $\{A, B, C, D, E, F, G, H\}$ and $\{a, b, c, d, e, f, g, h\}$
I need to find all the ordered sets containing all $16$ of these elements, such that,
- The relative order of the elements in each of these two sets is preserved in the merged set (A must always occur before B and c before d, etc).
- A is the beginning element in all cases.
Eg: $\{A, B, C, D, E, F, G, H, a, b, c, d, e, f, g, h\}$
I tried finding them manually, but it's taking too long. Is there any Online resource that can simplify it for me because I'm working on the bigger picture and this is just a logic I'm experimenting on. Thanks.