Work done against the gravitational force by both the persons is same = mgh
work done = 50x10x8 = 4000 J
Both have different power.
Work done per unit tine is known as power.
Power of A = Work done / time = 4000 / 20 = 200 watt
Power of B = Work done / time = 4000 / 25 = 160 watt
A has done more work in one second than B.