Let 'dx' be the length of an element at distance x from the table.
Mass of the element, 'dm'
Work done to putting back this mass element on the table is
So, total work done to put part back on the table
The work to be done by a person to put the hanging part back on the table is .