There are 6 options for A to pair with, and then 5 options for B.
At this point, there are 2 ways to sort out the remaining 4. And this is true whether or not A's partner is best friends with B's partner.
Confirmed with the following program. I turned the students into integers with best friends designated by values differing by 1.
[[1, 4], [2, 5], [7, 10], [8, 11]]
[[1, 4], [2, 5], [7, 11], [8, 10]]
[[1, 4], [2, 7], [5, 10], [8, 11]]
[[1, 4], [2, 7], [5, 11], [8, 10]]
[[1, 4], [2, 8], [5, 10], [7, 11]]
[[1, 4], [2, 8], [5, 11], [7, 10]]
[[1, 4], [2, 10], [5, 7], [8, 11]]
[[1, 4], [2, 10], [5, 8], [7, 11]]
[[1, 4], [2, 11], [5, 7], [8, 10]]
[[1, 4], [2, 11], [5, 8], [7, 10]]
[[1, 5], [2, 4], [7, 10], [8, 11]]
[[1, 5], [2, 4], [7, 11], [8, 10]]
[[1, 5], [2, 7], [4, 10], [8, 11]]
[[1, 5], [2, 7], [4, 11], [8, 10]]
[[1, 5], [2, 8], [4, 10], [7, 11]]
[[1, 5], [2, 8], [4, 11], [7, 10]]
[[1, 5], [2, 10], [4, 7], [8, 11]]
[[1, 5], [2, 10], [4, 8], [7, 11]]
[[1, 5], [2, 11], [4, 7], [8, 10]]
[[1, 5], [2, 11], [4, 8], [7, 10]]
[[1, 7], [2, 4], [5, 10], [8, 11]]
[[1, 7], [2, 4], [5, 11], [8, 10]]
[[1, 7], [2, 5], [4, 10], [8, 11]]
[[1, 7], [2, 5], [4, 11], [8, 10]]
[[1, 7], [2, 8], [4, 10], [5, 11]]
[[1, 7], [2, 8], [4, 11], [5, 10]]
[[1, 7], [2, 10], [4, 8], [5, 11]]
[[1, 7], [2, 10], [4, 11], [5, 8]]
[[1, 7], [2, 11], [4, 8], [5, 10]]
[[1, 7], [2, 11], [4, 10], [5, 8]]
[[1, 8], [2, 4], [5, 10], [7, 11]]
[[1, 8], [2, 4], [5, 11], [7, 10]]
[[1, 8], [2, 5], [4, 10], [7, 11]]
[[1, 8], [2, 5], [4, 11], [7, 10]]
[[1, 8], [2, 7], [4, 10], [5, 11]]
[[1, 8], [2, 7], [4, 11], [5, 10]]
[[1, 8], [2, 10], [4, 7], [5, 11]]
[[1, 8], [2, 10], [4, 11], [5, 7]]
[[1, 8], [2, 11], [4, 7], [5, 10]]
[[1, 8], [2, 11], [4, 10], [5, 7]]
[[1, 10], [2, 4], [5, 7], [8, 11]]
[[1, 10], [2, 4], [5, 8], [7, 11]]
[[1, 10], [2, 5], [4, 7], [8, 11]]
[[1, 10], [2, 5], [4, 8], [7, 11]]
[[1, 10], [2, 7], [4, 8], [5, 11]]
[[1, 10], [2, 7], [4, 11], [5, 8]]
[[1, 10], [2, 8], [4, 7], [5, 11]]
[[1, 10], [2, 8], [4, 11], [5, 7]]
[[1, 10], [2, 11], [4, 7], [5, 8]]
[[1, 10], [2, 11], [4, 8], [5, 7]]
[[1, 11], [2, 4], [5, 7], [8, 10]]
[[1, 11], [2, 4], [5, 8], [7, 10]]
[[1, 11], [2, 5], [4, 7], [8, 10]]
[[1, 11], [2, 5], [4, 8], [7, 10]]
[[1, 11], [2, 7], [4, 8], [5, 10]]
[[1, 11], [2, 7], [4, 10], [5, 8]]
[[1, 11], [2, 8], [4, 7], [5, 10]]
[[1, 11], [2, 8], [4, 10], [5, 7]]
[[1, 11], [2, 10], [4, 7], [5, 8]]
[[1, 11], [2, 10], [4, 8], [5, 7]]
60