It's just a combination of two DFAs: (i) even number of a's; and (ii) number of b's to be multiple of 3.
64.3k questions
77.9k answers
244k comments
80.0k users