3. Zoka, Joka, and Coka, three housewives, received 9 closed milk bottles at the market, containing, in order: $2,5,8,11,14,17,20,23$ and 26 deciliters of milk. In how many ways can they divide these bottles among themselves (without opening the bottles) so that each gets the same number of bottles and the same amount of milk?
3. Among the 9 observed bottles, there are 126 deciliters of milk in total, so each housewife should receive 3 bottles with a total of 42 deciliters of milk.

Consider the housewife who received a bottle with 26 deciliters of milk. In the remaining two bottles, she has a total of 16 more deciliters, which is possible only in the following two ways: $2+14$ or $5+11$. Let's first assume the first case. Then the housewife who received a bottle with 23 deciliters has a total of 19 deciliters of milk in the remaining two bottles, which (from the undivided bottles) can only be obtained as $8+11$; in this case, the third housewife is left with bottles containing 5, 17, and 20 deciliters of milk. Therefore, in this case, depending on which is the "first," which is the "second," and which is the "third" housewife, there are 6 ways to distribute (as many as there are permutations of these three housewives). Similarly, if we assume that the first housewife received bottles with 5, 11, and 26 deciliters of milk, then the one who received a bottle with 23 deciliters must receive two more bottles with 2 and 17 deciliters, and the third is left with bottles containing 8, 14, and 20 deciliters of milk. Therefore, here too, there are 6 ways to distribute (again depending on the permutation of the housewives).

Therefore, in total, there are 12 ways to distribute the bottles in accordance with the conditions of the problem.