Toolbox:
• The number of surjections from set A having n elements to set B having 2 elements is $2^n-2$
$A=\{1,2,3,......n\} \qquad B=\{a,b\}$

A has n elements B has 2 elements

number of surjection is $2^n-2$

'B' option is correct