### Instruction: There are 38 animal legs in a farm and 12 animals in total. Some are chickens and some are sheep. Find the number of chickens Please write a program to solve it.### Response: legs = 38
animals = 12
all_chicken = animals*2
remains = legs - all_chicken 
total_sheep = remains/2
total_chicken = int(animals - total_sheep) 

print(total_chicken)