(a)
Apply the permutation formula (no repeats allowed):
(b)
(1) Count letter arrangements (repeats allowed):
(2) Count digit arrangements with exactly two 9s:
Choose positions for the two 9s: . Remaining 2 digits from : .
(3) Combine by multiplication principle: