Let x be the number of goats

Cows:4+x

Pigs:2(4+x)=8+2x

Total:x+4+x+8+2x=56

4x+12=56

4x=44

x=<<11=11>>11 goats

# Answer

11
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
A farmer has twice as many pigs as cows, and 4 more cows than goats.  If the farmer has 56 animals total, how many goats does he have?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
11
A farmer has twice as many pigs as cows, and 4 more cows than goats.  If the farmer has 56 animals total, how many goats does he have?
train