HEY JUNIOR HERE IS YOUR ANSWER I HOPE ITS HELPFUL !! PLEASE UPVOTE :)
Work done = mgh
Work done by 1st person = mgh
= 50 x 10 x 2
= 1000 J
Work done 2nd person = mgh
= 50 x 10 x 2
= 1000 J
Both did the same work as mass and height are the same, so the ratio of the work will be 1:1
Power developed by 1st person = Work / Time
= 1000 / 20
= 50 Watt
Power developed by 2nd person = Work / Time
= 1000 / 50
= 20 Watt
Work done by both of them is same, but power developed by them is 50 Watt and 20 Watt respectively.
Regards