Answer:
36045979200 + 18595558800 + 8835488640 +...
Explanation:
We suppose that we have 60 animals (between cows and horses) and we are going organize the animals in the pens in the indicated distribution.
First we selected six animals (of the set of 60 animals) for the first row through the combinatorial.
Now such as the order of the animals in each row matter, we must use a permutation, thus:
6P6 = 6! = 720
Then for the first row we have 720*50063860 = 36045979200 possibilities
The proccess for locating the animals in the other rows is similar only the amount of animal is decreasing, thus.
Second row :
25827165*720 = 18595558800
Third row:
12271512*720 = 8835488640
And the process continues until the ten row.