Step 1 :\(W = Fd\cos(\theta)\)
Step 2 :\(d = \frac{W}{F}\)
Step 3 :\(d = \frac{395\mathrm{~J}}{40\mathrm{~N}}\)