[ABC]{2,4}[XYZ]{2,4}
It matches strings that start with two through four characters from 'A', 'B', or 'C' followed by two through four characters of 'X', 'Y', or 'Z'.
The finite automaton for this is straightforward:
Write a regular expression that matches strings that have no more than 5 'A' followed by a 'Z'.