$${m_1g = \rho \Delta Vg \quad\Rightarrow\quad m_1 = \rho \Delta V = \rho S\Delta h_2}$$