Assume that
A = Permutations[{1, 2, 3}]
AND $$C=\{1,2\}$$ I want to apply this process $X=C\subset A$ The output is $$X=\{1,2,3\},\{2,1,3\}$$
How can the array row be selected according to the elements in the subset
My attempts
Select[{{1, 2, 3}, {1, 3, 2}, {2, 1, 3}, {2, 3, 1}, {3, 1, 2}, {3, 2,
1}}, MemberQ[1, 2, #] &]
The output is
a = Permutations[{1, 2, 3, 4, 5, 6, 7, 8}]; c = {2, 3, 4} Select[a, ContainsAll[#[[1 ;; 2 ;; 3]], c] &]
How can the answer be generalized?