Bernie has three pastures, each containing an equal number of animals. He sold all the animals of his pastures to 37 persons, each buying an equal number of animals.
If the cows cost $32.00 each, goats $15.00 each and pigs $5.00 each - determine the maximum number of animals Bernie could have, if he received $1661.00 from the sale.