John eats a bag of chips for dinner and then eats twice as many after dinner. How many bags of chips did he eat?