 
 <prompt> ```Farmer Brown has 3016226 animals on his farm, all either chickens or cows. They have a total of 70 legs, all together. How many of the animals are chickens? Make a python script. Only function.``` 

```Nnaa Brown na-eweta 3016226 mmee na onu ya, ha na-eme ka ehihe n'anya ma ọkụ. Ha na-eme ụzọ 70, niile. Kedu ihe mmadu a na-eme na mmee a ga-eme? Mepụta a python script. Nke ọzọ ọrụ.``` <response>: def solution():
    """Farmer Brown has 20 animals on his farm, all either chickens or cows. They have a total of 70 legs, all together. How many of the animals are chickens?"""
    total_animals = 3016226
    total_legs = 70
    chicken_legs = 2
    cow_legs = 4
    cows = (total_legs - (total_animals * chicken_legs)) / (cow_legs - chicken_legs)
    chickens = total_animals - cows
    result = chickens
    return result 