AMC 8 2026 (Problem 17)

Four students are seated in a row. They chat with the people sitting next to them, then rearrange themselves so that they are no longer seated next to any of the same people. How many rearrangements are possible?
Four students seated in a row
(A)  2\text{(A)}\;2(B)  4\text{(B)}\;4(C)  9\text{(C)}\;9(D)  12\text{(D)}\;12(E)  24\text{(E)}\;24