$\text{Gọi số học sinh lớp 8A là a (a > 0) (học sinh)}$
$\Rightarrow$ $\text{Số học sinh lớp 8B là 78 - a}$
$\text{Chuyển 2 em từ lớp 8A (a -2 ) thì số học sinh hai lớp}$
$\text{bằng nhau}$
$\text{Ta có phương trình sau :}$
$\text{a - 2 =78 - a + 2}$
$\Leftrightarrow$ $\text{a + a =80 + 2}$
$\Leftrightarrow$ $\text{2a = 82}$
$\Leftrightarrow$ $\text{a = 82 : 2}$
$\Leftrightarrow$ $\text{a = 41}$
$\Rightarrow$ $\text{Lớp 8A có 41 học sinh}$
$\text{Số học sinh lớp 8B là:}$
$\text{78 - 41 = 37 (học sinh)}$
$\text{Đáp số: 8A: 41 học sinh}$
$\text{8B: 37 học sinh}$