Answer:
d = 2 [m].
Explanation:
To solve this problem we must use the principle of conservation of energy, where the mechanical energy in a state plus the work done on the body, must be equal to the mechanical energy in the state E. This can be easily represented in the following equation.

where:
Ea = Mechanical energy in A [J]
Wa-e = Work among states a and e [J]
Ee = Mechanical energy in E [J].
The key to being able to understand this problem is that in state A, we only have kinetic energy, while the energy in state E is equal to zero (there is no movement). The work is equal to the product of force by distance, as work acts in the opposite direction to movement, this has a negative sign.
![10 - F*d = 0\\5*d = 10\\d = 10/5\\d = 2 [m]](https://tex.z-dn.net/?f=10%20-%20F%2Ad%20%3D%200%5C%5C5%2Ad%20%3D%2010%5C%5Cd%20%3D%2010%2F5%5C%5Cd%20%3D%202%20%5Bm%5D)