Answer
a) $(f\circ g)(2)=4$
b) $g(f(2))=1$
c) $f(g(4))=3$
d) $g(f(5))=3$
e) $f(f(8))=8$
f) $g(f(g(5)))=1$
Work Step by Step
a) $(f\circ g)(2)=f(g(2))=f(2)=4$
b) $g(f(2))=g(4)=1$
c) $f(g(4))=f(1)=3$
d) $g(f(5))=g(6)=3$
e) $f(f(8))=f(8)=8$
f) $g(f(g(5)))=g(f(2))=g(4)=1$