When an object is moving with a certain velocity, it has some kinetic energy. Same kinetic energy needs to be applied in opposite direction of movement to bring this object to rest. Hence, kinetic energy would give the value of work done.
KE = \(\frac { 1 }{ 2 }\) mv2