A context-free grammar $\mathrm{G}=(\mathrm{V}, \Sigma, \mathrm{P}, S)$ is called right-linear if each rule is the form
i) $A \rightarrow u$
ii) $A \rightarrow u B$,
where $A, B \in \mathrm{V}$, and $u \in \Sigma^*$. Show that the right-linear grammars generate precisely the regular sets.