Person moves up 40 stairs and then go down by 10 steps
So total steps that person moves up will be
[tex]N = (40 - 10) = 30 steps[/tex]
Each step is of height 0.25 m
so total height raised
[tex]H = 30 \times 0.25 = 7.5 m[/tex]
Total mechanical energy consumed
[tex]E = mgH [/tex]
here we know that
[tex]mg = 790 N[/tex]
[tex]E = 790 \times 7.5 = 5925 J[/tex]
Total mechanical power generated will be
[tex]P = \frac{E}{t}[/tex]
[tex]P = \frac{5925}{(20 + 5)}[/tex]
[tex]P = 237 W[/tex]
so its total power will be 237 Watt