$${p=h_{VA}\cdot \rho_A \cdot g + h_{VB}\cdot \rho_B \cdot g = h_{SA}\cdot \rho_A \cdot g + h_{SB}\cdot \rho_B \cdot g \quad}$$