First, convert moles of substance A into moles of substance B. Then, convert moles of B into mass of B. Moles A → moles B → mass B. The main equation is: moles A x (mole ratio of B/A) x molar mass of B = mass of B.