Answer:
The pressure of water at any depth is given by
Pressure= weight density* depth
When the barrel bursts at a depth of 12 m, it has more pressure due to the vertical component. The force that acts on the wall of barrel exceeds the minimum since water pressure depends on depth/height and also the pressure is transmitted to all parts of the barrels. Unfortunately, it bursts when it has exceeded the maximum pressure.