Final answer:
To find the total number of boys and girls at the beginning of the performance, calculate 5 times the number of boys and girls remaining after one-fifth of the boys left, leading to the answer 5b + 5g.
Step-by-step explanation:
When one-fifth of the boys left a musical performance, there were still b boys and g girls remaining. To find the total number of boys and girls at the beginning of the performance, let's denote the initial number of boys as 5b, since after one-fifth left, 4/5 of the original number, which is 4b, remained. Adding the girls who stayed, g, to both of these quantities would give us the total number of students at the beginning: 5b + g for boys and 5b + g for girls. Since we have the totals for both boys and girls, we combine them to get the overall total, which is 5b + 5g. Therefore, the answer from the provided options is (b) 5b + 5g.