Elimination of useless symbol
using bottom up then top down approach we get
S->B
B->a | bC
C-> a | $\epsilon$
Now we remove unit production we get
S->a | bC
C->a | $\epsilon$
Now we remove null production we get
S-> a | b | bC
C-> a
Total production 4