Given Grammar -
S → A
A → AB|ϵ
B → aB|b
The first of -
first(B) = {a, b}
first(A) = {ϵ, a, b}
first(S) = first(A) = {ϵ, a, b}
The follows of -
follow(S) = {$} as S is the Starting Symbol
follow(A) = follow(S) U first(B) = {$, a, b}
follow(B) = follow(A) = {$, a, b}