Echoing Martin's excellent comment in answer form, I think it is very helpful to write out these units conversion problems in "railroad tracks" format.
The only trick with chemistry and stoichiometry when it comes to unit conversions is that there are often multiple species whose mass or moles (or volume or density etc) we are tracking. You'd better write down species labels in your units. And when you do this, a mol of Na2S
is different than a mol of reaction
; the two mole units do NOT cancel out if you take the ratio of one to the other.
The stoichiometry of the particular reaction you're interested in is what lets you convert from moles of one species to another. So your particular reaction is telling you that 1 mol of Na2S
is equal to 1 mol of reaction
. But if you had a different reaction, the "units conversion" between moles of one species and moles of another could be different.
For this particular problem, I'd use the "railroad tracks" method to write out the solution like this (n.b. this is hard to do in MathJax; apologies if I do anything wrong):
- You start off with 58 g of $\ce{Na2S}$ and the idea to convert it to moles is a good one.
$$\frac{\pu{58 g \ce{Na2S}}}{1}\frac{\pu{mol \ce{Na2S}}}{\pu{78.08 g \ce{Na2S}}}$$
Once you have moles of $\ce{Na2S}$, you can convert to moles of "reaction" using the stoichiometric coefficient of $\ce{Na2S}$ in your reaction, which in this case for $\ce{Na2SO4 + 2C -> Na2S + 2CO2}$ is 1.
$$=\require{cancel}\frac{\pu{58 g \ce{Na2S}}}{1}\frac{\pu{mol \ce{Na2S}}}{\pu{78.08 g \ce{Na2S}}} \frac{\pu{mol reaction}}{\pu{mol \ce{Na2S}}}$$
And once things are on a "moles of reaction" basis, you can easily "convert" units to the species that you care about, in this case, carbon.
$$=\require{cancel}\frac{\pu{58 g \ce{Na2S}}}{1}\frac{\pu{mol \ce{Na2S}}}{\pu{78.08 g \ce{Na2S}}} \frac{\pu{mol reaction}}{\pu{mol \ce{Na2S}}}\frac{\pu{2mol C}}{\pu{mol reaction}}$$
- Lastly, you can convert from moles of carbon to grams.
$$=\frac{\pu{58 g \ce{Na2S}}}{1}\frac{\pu{mol \ce{Na2S}}}{\pu{78.08 g \ce{Na2S}}} \frac{\pu{mol reaction}}{\pu{mol \ce{Na2S}}}\frac{\pu{2mol \ce{C}}}{\pu{mol reaction}}\frac{\pu{12 g \ce{C}}}{\pu{mol \ce{C}}}$$
- The final step is to check that all units cancel except the output units you desire, in this case grams of carbon.
$$\require{cancel}=\frac{58 \cancel{\pu{g \ce{Na2S}}}}{1}
\frac{\cancel{\pu{mol \ce{Na2S}}}}{78.08\cancel{\pu{ g \ce{Na2S}}}}
\frac{\cancel{\pu{mol reaction}}}{\cancel{\pu{mol \ce{Na2S}}}}
\frac{2 \cancel{\pu{mol \ce{C}}}}{\cancel{\pu{mol reaction}}}.
\frac{\pu{12 g \ce{C}}}{\cancel{\pu{mol \ce{C}}}}$$
$$=\left(\frac{58}{78.04}\frac{2}{1}\frac{12}{1}\right) \textrm{g}\;\ce{C} =\textrm{17.84 g C}$$