The pressure P is the same on the bottom of each vessel.
Why the pressure does not depend upon the shape of the vessel or the amount of fluid in the vessel rests upon three things:
a. Pressure is force per unit area and this is not same as the total weight of the liquid in a vessel.
b. A fluid can not support its self without a container. Thus the walls of the container exert a pressure on the fluid equal to the pressure of the fluid at that depth.
c. The pressure at given level is transmitted equally throughout the fluid to be the same value at that level.