The goats cost 3*400=$<<3*400=1200>>1200

He buys 3*2=<<3*2=6>>6 llamas

Each llama cost 400*1.5=$<<400*1.5=600>>600

So he spends 600*6=$<<600*6=3600>>3600 on llamas.

So the total cost was 1200+3600=$<<1200+3600=4800>>4800

# Answer

4800
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Tim decides to get animals for his zoo.  He buys 3 goats for $400 each.  He gets twice as many llamas which cost 50% more each.  How much did he spend?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
4800
Tim decides to get animals for his zoo.  He buys 3 goats for $400 each.  He gets twice as many llamas which cost 50% more each.  How much did he spend?
train