Multiply 2x3=6, then 2x I = 2i, then i x 3= 3i, then i x i= i2( i squared) so it will be written as 6+2i+3i+i2( squared)
from here you can see that 2i and 3i can be added together to make 5i so, 6+5i+i2(squared)
Then you bring in the third bracket from the question. (6+5i+i2)(3+i)
6 x 3=18 6 x i= 6i 5i x 3=15i 5i x i=5i2(squared) 2x3=6 2x i= 2i so you get 18+6i+15i+5i2(squared)+6+21 6i and 15i can be added together 18, 6 and 21 can be added together