A=x1,x2…..x7 and B=y1,y2,y3
Let us select 3 elements from A & connect it to y2
Number of ways =7C3
The number of ways would be equal to 7C3 and now we have 2 elements {y}_{1} & {y}_{3} in set B to be mapped from the remaining element of set A
Hence, total number of function 24=16 and out of which 2 would be "into" functions (when all four goes in y1 & when all four goes in y3) =24−2=14
∴So the total number of onto functions would be 14⋅7C3