5_ (4 marks) Use left-factoring and/or eliminate left-recursion to transform each of the below eight grammars into a form where the immediate problems preventing the use of recursive descent parsing have been removed. As usual, capital letters denote variables and lowercase letters are terminals.
(6) S -> + SB | B
B -> Bb
S -> + Sba | Sbcd
S -> + Sdb | Sdc a
Hint for (g) and (h): Here, after elimination of left recursion, you need to use left-factoring (or vice versa).