I have 40 elements I need to order (for simplicity just call them "1" - "40"). There are a few rules regarding how I must order some elements:
Elements "2" and "5" must go before element "10", Element "10" must go before element "7", Element "7" must go before elements "3" and "28"
How many distinct ways can I make these arrangements?
I think I have to use a partial permutation. I drew it out like this:
"2" (could have elements between) "5"...."10"...."7"...."3" (could have elements between) "28"
I'm lost after this step, however. I know how to use partial permutations with respect to preserving a group of elements that must go together but I am not sure what to make of this problem.