How many 5-letter words can be made using exactly 5 of the letters from
TEXAS and MEXICO? Letters may only be used as many times as they appear. (For
example, XETEX is allowed. However, MATEA is not allowed, since the A appears twice
in MATEA but only once in the given words.)