Let $G=\langle V,T,P,S\rangle$ be the grammar defined by the productions:
S-> aB|bA
A->a|aS|bAA
B->b|bS|aBB
where $V=\{S,A,B\}$ and $T=\{a,b\}$. Show that G is ambiguous.
My Approach:
Left-most Derivation:
S => bA => baS => baaB => baabS => baabbA => baabba
Right-most Derivation:
S => bA => baS => baaB => ... (this is where I got stuck)
To show a CFG is ambiguous I need to show two different ways to obtain the same string which would be: using left-most and right-most derivation
I can't seem to do right-most derivation no matter how much I try I always end up having to do the same thing as left-most. Any suggestions?