Suppose element X has $5$ stable isotopes, and element Y has $6$ stable isotopes. Find the number of natural molecules, knowing that an X has a charge of $+4$ and Y has a charge of $-1$.
What I tried was this: for element X we have $5$ options, and for each element Y we have $6$ options. Therefore the total number of options would be $5 × 6 × 6 × 6 × 6$.
But this answer is clearly wrong, as it counts the same type of molecule, multiple items. (AAAB) and (AAABA) count twice which we don't want to happen. (A is an isotope of Y and B is some other isotope of B)
What can I do?