Assume the length of the pipe be h cm.
Formula for volume of cuboid is
Now, Volume of cuboid
Internal radius of the pipe
External radius of the pipe
Therefore, the volume of iron in the pipe (External Volume) (Internal Volume)
Now from the question it’s understood that,
The volume of iron in the pipe volume of iron in cuboid
Hence, the length of the pipe is .