Let’s say a small person with a mass of 50 kg walks up two flights of stairs. A heavy person with a mass of 105 kg walks up the same stairs. Who did more work and why?

Please help me, I'm very confused