A word is good if and only if it consists of no letters other than A, B, C, D.
Examples: AABDC or CCCB or AB or ABDBCDA. How many 5-letter good words have at least one A and at least one C? (order matters, so ABCDA and ADCBA are distinct)
A
B
C
D
E
F
G
H