Total volume of water =20×30×24= 14400 (cubic centimeter)
Total volume of water =40×30×h+20×30×h= 14400.
1800h= 14400
H=8 cm