The problem is to demonstrate the regularity of the following language: {xy ∈ {a,b}* | |X|a = 2|Y|b} which refers to words of the form xy where the number of occurrences of a in subword x is twice the number of occurrences of b in subword y. I suspect that it is regular but I don't know how to demonstrate it. Finding its DFA would be enough ?
Thanks in advance