When one-fifth of the boys left, there were still b boys and g girls who stayed to see a program. What was the total number of boys and girls at the beginning of the program?