4. (8 points) In a certain orchestra, the number of girls is twice the number of boys. If 24 girls are transferred out, then the number of boys will be twice the number of girls. How many male and female students were there originally in the orchestra? $\qquad$ people.

将上面的文本翻译成英文，请保留源文本的换行和格式，直接输出翻译结果。
4. (8 points) The number of girls in a band is twice the number of boys. If 24 girls are transferred away, then the number of boys will be twice the number of girls. How many boys and girls were there in the band originally? $\qquad$ people.

【Solution】Solution: Let the number of boys before the transfer be $x$, then the number of girls is $2 x$,

So $x=2(2 x-24)$
$$
\begin{aligned}
x & =4 x-48 \\
3 x & =48 \\
x & =16
\end{aligned}
$$
$$
\begin{array}{l}
16 \times 2+16 \\
=32+16 \\
=48 \text { (people) }
\end{array}
$$

Answer: There were originally 48 boys and girls in the band.
Therefore, the answer is: 48.