Right triangles and prisms

On the left you can see a right triangle, ABC, and the squares built on its legs. On the right three prisms have been created on those polygons. Move points A, B and C to modify the right triangle, and the slider h to change the prisms' heights. What is the relationship between the volumes of the prisms? Explain.