So you have to find the volume of the tank, and the volume of the pyramid. Then subtract the volume of the pyramid from that out of the tank. The formula for pyramid is v = lwh/3. For the tank (which is a cube in this case) It's any given side cubed.
This is because to get to 14/15 you must divide by 6 but when getting to 42/45 you must divide 2. Therefore 14/15 is your answer because the problem went to the most reduced fraction.