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
#### 4800