Language Grammar question

Given that R={S➡️abSc|E}
1. Generate the information above
2. Find L(G)

1. The given grammar is G = (V, Σ, R, S), where:

V = {S}
Σ = {a, b, c}
R = {S➡️abSc}
S is the start symbol of the grammar.

2. To find L(G), we need to recursively expand the productions in R until all terminals are reached.

Starting with the start symbol S, we have the production S➡️abSc.
Expanding S gives us abSac.
Expanding S again gives ababSacc.
Expanding S one more time gives us abababSacc.

Continuing this process indefinitely, we can generate strings in the language L(G) which consist of an arbitrary number of "ab" followed by matching numbers of "ac" at the end.

Therefore, L(G) is the set of strings of the form a^nb^n c^n for n≥0.