The work done \( W \) against gravity is given by:
\[
W = mgh
\]
Where:
- \( m = 50 \, \text{kg} \) is the mass of the person,
- \( g = 9.8 \, \text{m/s}^2 \) is the acceleration due to gravity,
- \( h = 10 \, \text{m} \) is the height of the staircase.
Now, substitute the values:
\[
W = 50 \times 9.8 \times 10 = 5000 \, \text{J}
\]
Thus, the work done by the person is \( 5000 \, \text{J} \).