Three people inherited 24 barrels. Among the barrels, 8 are half full, 8 are completely full of wine, and 8 are empty. How should they divide them so that without mixing or pouring the wine, each heir gets 8 barrels and an equal amount of wine?
The division can occur as follows:

$1^{\circ}$. $A$ and $B$ get 4 full and 4 empty barrels, $C$ gets 8 half-full barrels.

$2^{\circ}$. $A$ and $B$ get 2 full, 4 half-full, and 2 empty barrels, $C$ gets 4 full and 4 empty barrels.

$3^{\circ}$. $A$ and $B$ get 3 full, 2 half-full, and 3 empty barrels, $C$ gets 2 full, 1 half-full, and 2 empty barrels.

Number of solutions: 19.