Try converting the given context free grammar to LL(k) class by performing left factoring then eliminating left recursion.