A system with a mass of 5 kg, initially moving horizontally with a velocity of 40 m/s, experiences a constant horizontal deceleration of 2 m/s2 due to the action of a resultant force. As a result, the system comes to rest. Determine the length of time, in s, the force is applied and the amount of energy transfer by work, in kJ.