Clearly b is the answer as we can see that every one is generating aaaaabbb while the second option is not generating it . The approach to this question is see in option b every a is has to be followed by b because it has (ab)*, and such restriction is not in the question.