Person moves up 40 stairs and then go down by 10 steps
So total steps that person moves up will be
![N = (40 - 10) = 30 steps](https://img.qammunity.org/2019/formulas/physics/middle-school/1vgx6q27k828m1drqz5u63aq2ri1i2zm3f.png)
Each step is of height 0.25 m
so total height raised
![H = 30 * 0.25 = 7.5 m](https://img.qammunity.org/2019/formulas/physics/middle-school/q1l5085nxkuyhs554ie6bmcj6opdtuhha6.png)
Total mechanical energy consumed
![E = mgH](https://img.qammunity.org/2019/formulas/physics/middle-school/ngfgf40rj622ljp25q8aqbnbrjb8c0ybn6.png)
here we know that
![mg = 790 N](https://img.qammunity.org/2019/formulas/physics/middle-school/uiplus3gtaejpuol32cyi6wkq2nksujtxz.png)
![E = 790 * 7.5 = 5925 J](https://img.qammunity.org/2019/formulas/physics/middle-school/l9bjyh5vou1n3nzcs8x5i4w09k7dv81m5y.png)
Total mechanical power generated will be
![P = (E)/(t)](https://img.qammunity.org/2019/formulas/physics/high-school/jbe074f3esjfe53z3uap6tv7fp4nxfmluf.png)
![P = (5925)/((20 + 5))](https://img.qammunity.org/2019/formulas/physics/middle-school/sk3exguul7ipgg8oaz9a9oalhipr6i8mj0.png)
![P = 237 W](https://img.qammunity.org/2019/formulas/physics/middle-school/uzngmc1kg3rpbfu8lssg395173n4cz83i5.png)
so its total power will be 237 Watt