in the grammar G2,U is not directly derive terminal string.it is dependent on M.
so elemenate the unit productions in G2,the grammar is
S->iEtM |iEtMeU|a|iEtM
E->b
so no M productions and U productions and replace M and U by S.
S->iEtS | iEtSeS |a|
E->b
it looks like grammar G1.