Person moves up 40 stairs and then go down by 10 steps
So total steps that person moves up will be

Each step is of height 0.25 m
so total height raised

Total mechanical energy consumed

here we know that


Total mechanical power generated will be



so its total power will be 237 Watt