Because there is no friction and the problem gives a final velocity and indirectly an increase in height, we should use an energy approach:
Work done on the box = Kinetic energy gain + Potential energy gain (vi = 0 and hi = 0)
Work = (1/2)mv2 + mgh
The only other piece of information is that h = dsinθ = 10 m * sin 30° = 5 m