The possible positions for the two vowels are $(2, 4), (2, 5)$ and $(3, 5).$ Each of these results in two isolated consonants and two adjacent consonants. Thus the answer is the product of the following factors:
- choose the vowel locations $(3\;\text{ways});$
- choose the vowels $(2 \times 2 = 4 \;\text{ways});$
- choose the isolated consonants $(3 \times 3 = 9 \;\text{ways}); $
- choose the adjacent consonants $(3 \times 2 = 6\;\text{ways)}.$
The answer is $3 \times 4 \times 9 \times 6 = 648.$
This construction can be interpreted as a Cartesian product as follows. $\text{C1}$ is the set of lists of possible positions for the vowels, $\text{C2}$ is the set of lists of vowels in those positions, and $\text{C3}$ and $\text{C4}$ are sets of lists of consonants. Thus
- $\text{C1} = \{(2, 4),(2, 5),(3, 5)\}$
- $\text{C2} = \{\text{AA, AI, IA, II}\}$
- $C3 = \{\text{LL, LS, LT, SL, SS, ST, TL, TS, TT}\}$
- $C4 = \{\text{LS, LT, SL, ST, TL, TS}\}.$
For example, $((2,5), \text{IA, SS, ST})$ in the Cartesian product corresponds to the name $\text{SISTAS}.$
We can also solve this using the Rule of Sums. The possible vowel $\text{(V)}$ and consonant $\text{(C)}$ patterns for names are $\text{CCVCVC, CVCCVC}$ and $\text{CVCVCC.}$ Since these patterns are disjoint and cover all cases, we may compute the number of names of each type and add the results together. For the first pattern, we have a product of six factors, one for each choice of a letter$: 3\times 2 \times 2 \times 3 \times 2 \times 3 = 216.$ The other two patterns also give $216,$ for a total of $216 + 216 + 216 = 648$ names.