How to construct a grammar G such that L(G)={x^ny^mx^my^n/m,n>1}?

684 Views Asked by At

construct a grammar $G$ such that $L(G)=\{x^ny^mx^my^n/m,n>1\}$?

I don't have much idea how to approach this one. Could some help me to understand how to approach these kinds of problem?