Two DFA's are shown for languages {anb | n>=0} and {bna | n>=1} respectively .
Take these 2 as M1 and M2 respectively .
DFA M using cross product of M1×M2 having start state as {x1,y1} and mark final state as any state contain x2 or y3 and then do minimization .
The table is as follows => ( Sorry, for the handwriting )
Hence, after minimizing it, there are total 6 states and 2 final states .
Required M will be =>