The surnames of 40 children in a class arranged in alphabetical order. 16 of the…