Work Done W = F·d·cos θ

40.0 N
30°
10 m
Component along motion · F cos θ
34.6 N
Work done · W
346.4 J
Positive work — energy in

Only the force component along the motion does work. At θ = 90° the rope pulls straight up — the crate gains no energy from it.