The basic idea is correct. For moist air you can calculate the molar mass given by the part of nitrogen with $$M_{N_2,moist}=0.77\cdot 28.014\frac{g}{\text{mol}} = 21.57\frac{g}{\text{mol}}.$$
Note, that I multiplied with $28.014$ and not with `0.28`. The next step would be to also do the same for all other gases (oxygen, argon, carbon dioxide, etc) and then sum that up: $$M_{air,moist}=M_{N_2,moist}+M_{O_2,moist}+ …$$ That will give you the molar mass of moist air. Afterwards do the same steps for dry air.
What you also did, is to sum both values of dry and moist air. That is not asked in your task.