4·a + 4·s = 160 --> s = 40 - a
--------------------------------------------------
s^2 = (a/2)^2 + (a/2)^2 + h^2
(40 - a)^2 = (a/2)^2 + (a/2)^2 + h^2
h^2 = 1/2·a^2 - 80·a + 1600
--------------------------------------------------
V = 1/3·a^2·h
V^2 = 1/9·a^4·h^2
V^2 = 1/9·a^4·(1/2·a^2 - 80·a + 1600)
V^2 = 1/18·a^4·(a^2 - 160·a + 3200)
V^2' = 1/9·a^3·(3·a^2 - 400·a + 6400) = 0 --> a = 18.59 cm
--------------------------------------------------
h = √(1/2·18.59^2 - 80·18.59 + 1600) = 16.89 cm