Answer:
I'm not sure in which direction 10kg is lifted but assuming 10kg is lifted (or dragged) horizontally then
the 20kg vertically requires more work because gravity pushing down on it will require a somewhat large output of Energy.
But if they are both lifted vertically (or horizontally)then they are equal in work.
Hope this helps