The bag of cotton is heavier than iron bar. This is because the surface area of the cotton bag is larger than the iron bar. Hence, more buoyant force acts on the bag than that on an iron bar. This makes the cotton bag lighter than its actual value. For this reason, the iron bar and the bag of cotton show the same mass on the weighing machine, but actually the mass of the cotton bag is more than that of the iron bar.