First find the length of the diagonal of a square of side 4 inches:
d^2 = 4^2 + 4^2 = 2*4^2 = 32. Then the diagonal of the cube has length
sqrt( 32 + 4^2) = sqrt(32+16) = sqrt(48) = 4sqrt(3).
For the first one it’s h=6 and the second one is h=-3
The scale factor is 1/3.
To find this scale factor, choose a set of sides to compare lengths. For example, taking the left sides of the triangles, which is 9 and 3. 9 is 3 times bigger than the triangle on the right, so that gives us the scale factor of 1/3.
The factors of 32 is 1,2,4,8,16, and 32.