Step 1: Let girls \(=g\), boys \(=g+10\) (boys exceed girls by \(10\)).
Step 2: After the departures, girls remaining \(=0.6g\), boys remaining \(=0.4(g+10)\), and girls remaining is \(8\) more than boys remaining: \[ 0.6g-0.4(g+10)=8. \]
Step 3: Simplify: \(0.6g-0.4g-4=8 \implies 0.2g=12 \implies g=60\), so boys \(=70\).
Step 4: Total initial students: \[ \boxed{60+70=130} \]