You can think like this:
People with 12 must form the 12 constellation, and three people can have any constellation.
Everyone has 12 possibilities, with a total of 12 to the power of 15.