In image a, the pressure at the bottom is the same as the pressure at the top of the cylinder. If the…