Volume of a pyramid

The side length of cube is x. Height of the smaller pyramids is h and volume of smaller pyramids is v.
What is the relationship between x and h?[br]what is the total volume of 6 pyramids equal to?

Information: Volume of a pyramid