A bus is moving and has 500000 joules of kinetic energy. The brakes are applied and the bus stops. How much work is needed to stop the bus?