Okaaayyy here we go 6 sides of a cube so 6x1= 6 there are 6 cubes so that’s 6x6= 36 but the connecting sides there are 1 for every cube so 6-36 is 30