3/5 of the students in a class were boys. The teacher divided the boys equally into groups so that each group of boys had 1/10 of the number of students in the class. The teacher then divided the girls equally into groups such that each group of girls had 1/5 of the number of students in class.
a) Find the number of groups of boys and the number of groups of girls.
b) If there were 16 girls in the class, how many boys were there in each group?