The first is talking about MULTIPLYING by 2 and the second is talking about ADDING 2. That is, "twice a number" means to take a number and MULTIPLY it BY 2 "the sum of the number and two" means to take the number and ADD 2 to it. Edwin