Beginning with the surface area of each cube
The area of each face of each cube is found by squaring the side length.
Each cube has 6 faces, so the surface area of each cube was originally $6\times\text{side length}^2$, so the total surface area was originally $6\times8^2+6\times5^2+6\times3^2$.
However, where the largest cube joins the medium cube, the area of one face of the medium cube is lost from both cubes. Similarly, where the meduim cube joins the smallest cube, the area of one face of the smallest cube is lost from both cubes.
So the total surface area is:$$\begin{align}6\times8^2+6\times5^2+6\times3^2-2\times5^2-2\times3^2&=6\times8^2+4\times(3^2+5^2)\\
&=6\times64 + 4\times(9+25)\\
&=360+24 + 4\times34\\
&=360+24+120+16\\
&=480+40\\
&=520\end{align}$$ So the total surface area is $520$ cm$^2$.