Răspuns: a) 7 baieti
b) 23 de fete
Explicație pas cu pas:
f+b=30
f-5=2*(b+2) <=> f-5=2*b+2*2 <=> f-5=2*b+4 | +5 <=> f=2*b+4+5 <=> f=2*b+9;
f+b=30 <=> 2*b+9+b=30 <=> 3*b+9=30 | -9 <=> 3*b=30-9 <=> 3*b=21 | /3 <=> <=> b=21/3 <=> b=7;
f+b=30 <=> f=30-b. Cum b=7 => f=30-7 <=> f=23.