Answer:
height of each pyramid must be 3h units
Step-by-step explanation:
As we know that the volume of the cube is same as that of volume of square pyramid
so we have volume of the cube is given as
![V = h^3](https://img.qammunity.org/2020/formulas/physics/high-school/wwnf1r11ebktiqgztq6mgfdabjdpnmqpev.png)
now if the base area of pyramid and the cube is same
so we will have
![V_(pyramid) = (1)/(3) Base\: Area * height](https://img.qammunity.org/2020/formulas/physics/high-school/hsbnnvitza8ksrw9v7w6fc346wj5hb8dnf.png)
![V_(pyramid) = (1)/(3) h^2 * y](https://img.qammunity.org/2020/formulas/physics/high-school/r47y7la05alupvflid8usfqi98v3ru0503.png)
now since both have same volume
![(1)/(3)h^2 y = h^3](https://img.qammunity.org/2020/formulas/physics/high-school/1s9su1ndcrmavmk1h71l0hc9fy1ltyz4vz.png)
![y = 3h](https://img.qammunity.org/2020/formulas/physics/high-school/fu1o4i6krzp6rq9ob2ri0ocjkwc0kdi5pn.png)
height of each pyramid must be 3h units