Regard the 2 people who sit together as one "unit" and the other 3 people as 3 "units". Arrange 4 "units" in a circle:
(4 − 1)! = 3! = 6 ways
Number of permutations of 2 people who sit together: 2! = 2
So
6 × 2 = 12 ways