2024 AMC 10A Problem 6

What is the minimum number of successive swaps of adjacent letters in the string ABCDEFABCDEF that are needed to change the string to FEDCBAFEDCBA? (For example, 33 swaps are required to change ABCABC to CBACBA; one such sequence of swaps is ABC→BAC→BCA→CBAABC\to BAC\to BCA\to CBA.)
(A)  6\text{(A)}\;6(B)  10\text{(B)}\;10(C)  12\text{(C)}\;12(D)  15\text{(D)}\;15(E)  24\text{(E)}\;24