According to Archimede's principle when a body is immersed fully or partially in a liquid, it experiences an upward force that is equal to the weight of the fluid displaced by it therefore the mass of water displaced is equal to the mass of the ship.