The bus is moving and its initial kinetic energy is
![K_i=500000J=5 \cdot 10^5 J](https://img.qammunity.org/2019/formulas/physics/high-school/4j7dyvh3mksjm9lqowbjp96vnany23ujmb.png)
We want the bus to stop, so that its final kinetic energy is zero:
![K_f = 0](https://img.qammunity.org/2019/formulas/physics/high-school/r1937o2nyphrqmj0dpizkl9uuh7z3h9c6f.png)
The work-energy theorem states that the work done by an object is equal to its variation of kinetic energy:
![W=K_f - K_i](https://img.qammunity.org/2019/formulas/physics/high-school/wow8iae3yxiryfzbgwts5fisae8mmgc9vd.png)
Therefore:
![W=0-5 \cdot 10^5 J = -5 \cdot 10^5 J](https://img.qammunity.org/2019/formulas/physics/high-school/uzmxcykhh8wdv0zp52wc908tkzh996ncua.png)
This is the amount of work that needs to be done in order to stop the bus, and its sign is negative because the force applied (the force of the brakes) is opposite to the direction of motion of the bus.