Answer:
The animals must be separated in groups of 12.
Explanation:
To answer this problem, these quantities must be decomposed into their prime factors.


Now we look for the maximum common divisor between both terms to find the number that allows us to divide both the quantities into groups of equal size
Then the largest common divisor between 72 and 84 is equal to the common terms with its lowest exponent
mcd (72; 84) =

mcd (72; 84) = 12
Then the animals should be separated into groups of 12.
This means that 6 fences should be made with 12 sheep in each and 7 fences with 12 goats in each.