Step 1: Understanding the Concept
For isothermal reversible expansion, \(W = nRT\ln\dfrac{V_2}{V_1}\). At the same temperature and the same volume ratio, \(W\propto n\).
Step 2: Moles of each gas
For equal masses, \(n = \dfrac{10}{M}\), so the smallest molar mass gives the most moles.
\(\text{NH}_3 = 17\), \(\text{N}_2 = 28\), \(\text{H}_2\text{S} = 34\), \(\text{Cl}_2 = 71\ \text{g mol}^{-1}\).
Step 3: Result
\(\text{NH}_3\) has the most moles, so it performs the maximum work, option (D).
Final Answer:
Ammonia performs the maximum work.
\[ \boxed{\text{(D) }\mathrm{NH}_{3}} \]