The average mass of a group of boys was 45 kg. When the nurse measured and recorded the mass of one of the boys, she wrongly recorded his mass as 42 kg when it should have been 24 kg. As a result, she calculated their average mass as 47 kg. How many boys were there in the group?