Squares 1 and 2 have the same area because they're both (a+b) on a side.
Each of these squares is covered by four identical right triangle tiles, legs a,b, hypotenuse c.
In the first picture we see the uncovered part of the square, not covered by triangular tiles, is two squares, area
.
In the second picture the uncovered part of the square is a smaller square, area
.
We just moved the tiles around on the square, so the uncovered part is the same in both cases. So

--------
The rectangular prism has a bottom rectangular base 6 by 8. So the diagonal is
.
The diagonal and the 7 cm side make a right triangle whose hypotenuse is the diagonal of the rectangular prism we seek.

Answer: √149