This is the concept of areas of solid figures. The surface are of the solid figure formed when 2 square pyramids are attached will be given by:
SA=[number of triangular faces]*[Area of each triangle]
Number of triangular faces=8
Area of each triangle=1/2*bh
base=6/4=1.5 cm
height=2 cm
thus;
Area=1/2*2*1.5=1.5
The surface area will therefore be:
SA=1.5*8=12cm^2