Step 1: Use energy conservation instead of finding the tension first.
Constant speed on a frictionless incline means kinetic energy does not change, so every bit of work the tension supplies is stored as gravitational potential energy as the block rises.
Step 2: Find the height gained.
Moving a distance $d = 4$ m along an incline of $30^\circ$, the vertical rise is
\[
h = d\sin\theta = 4 \times \sin 30^\circ = 4 \times 0.5 = 2\ \text{m}
\]
Step 3: Equate the work done by the tension to the gain in potential energy.
\[
W = mgh = 2 \times 10 \times 2
\]
Step 4: Compute.
\[
W = 40\ \text{J}
\]
Step 5: Conclusion.
Since nothing is lost to friction and the speed stays constant, this is exactly the work the tension performs:
\[
\boxed{40\ \text{J}}
\]