Boarding passes go through two machines in turn. The first is f:{2,3,4,5}→{3,4,5,9} with f(2)=3, f(3)=4, f(4)=5 and f(5)=5. The second is g:{3,4,5,9}→{7,11,15} with g(3)=7, g(4)=7, g(5)=11 and g(9)=11. A pass carrying the number x leaves the pair of machines carrying (g∘f)(x).
Assertion: g∘f is an onto function from {2,3,4,5} to {7,11,15}.
Reason: (g∘f)(2)=7 and (g∘f)(4)=11.
(A) Assertion is correct, reason is correct; reason is a correct explanation for assertion.
(B) Assertion is correct, reason is correct; reason is not a correct explanation for assertion.
(C) Assertion is correct, reason is incorrect.
(D) Assertion is incorrect, reason is correct.