The chickens had 7*2=<<7*2=14>>14 legs.

The sheep had 5*4=<<5*4=20>>20 legs.

There were 14+20=<<14+20=34>>34 legs.

# Answer

34
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Farmer Brown fed 7 chickens and 5 sheep. How many total legs were there among the animals he fed?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
34
Farmer Brown fed 7 chickens and 5 sheep. How many total legs were there among the animals he fed?
train