A classic pyramid with square footprint, hight h, sidelength a and volume V.

Like seen, eg. in

Square Pyramid Calculator
Original question:

Assume it is a hollow container, with infinitively thin walls. It's filled with a volume of water = V/2, ie, it is half full (by volume). How far up from the bottom would the water reach, expressed in units of h, ie. How deep will the water be inside the pyramid, compared to the total hight of the pyramid.

My question:

Can this be solved in general, ie.

**<--- yes**