The explanation goes as contained below.
The shape is a cube and for a cube all sides are equal,
from the question the Area of just one side is :
[tex]\begin{gathered} S\times S=S^2 \\ \text{Then for 6 sides we have 6 }\times S^2=6S^2 \end{gathered}[/tex]