Consider two grammars \( G_1 \) and \( G_2 \) with the production rules given below:
\[
G_1:
\begin{aligned}
S &\to \text{if } E \text{ then } S \,|\, \text{if } E \text{ then } S \text{ else } S \,|\, a \\
E &\to b
\end{aligned}
\]
\[
G_2:
\begin{aligned}
S &\to \text{if } E \text{ then } S \,|\, M \\
M &\to \text{if } E \text{ then } M \text{ else } S \,|\, c \\
E &\to b
\end{aligned}
\]
where if
, then
, else
, a
, b
, c
are the terminals.
Which of the following option(s) is/are CORRECT?