The second day he visited 20*2=<<20*2=40>>40 houses

So he sold things at 40*.8=<<40*.8=32>>32 houses

So in total he sold things at 20+32=<<20+32=52>>52 houses

That means he sold 52*2=<<52*2=104>>104 things

# Answer

104
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
James visits 20 houses to try and make a sale.  He manages to sell something in every house.  The next day he visits twice as many houses but only sold to 80% of houses.  If he sold two things at each house in each of the two days, how many items did he sell?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
104
James visits 20 houses to try and make a sale.  He manages to sell something in every house.  The next day he visits twice as many houses but only sold to 80% of houses.  If he sold two things at each house in each of the two days, how many items did he sell?
train