8 squares of side 1 cm are cut out of the square D. Now it looks like shape E. What is the length of the boundary of shape E ?

Can anyone explain me the answer.Please.

Can anyone explain me the answer.Please.