Remember the work-energy theorem: the work done on an object is equal to the change in its kinetic energy. Here, the final kinetic energy is zero, so the work done by the braking force is equal to the negative of the initial kinetic energy, or the magnitude of the work done is equal to the initial kinetic energy.