It doesn't matter whether you cut the length, the width, or the height, straight, slanted, or curly-cue. You've still got 240 cm^3 of total volume there, and if the two pieces are equal, then the volume of each piece is 120cm^3, and the mass of each piece is 50 grams, and they both float in water.