The number of boys varies directly as the number of girls and inversely as the number of teachers. When there are 24 boys and 16 girls, there are 2 teachers. How many girls are there when there are 72 boys and 1 teacher?