The direct answer is: leave the 2 until the end. Use the distributive law to multiply the trinomial by the binomial, then multiply by 2.
However, you did this the hard way: you should start with the square first
2(x2 + 2x + 1)(x-3) now use the distributive law and finally multiply by 2.
You should remember that the square of a binomial is: the square the first + twice the first times the second + the square of the second.
!