The % yeild is found by comparing the moles of limiting reactant with the moles of the product. When it comes to MDMA, your limiting reagent should be isosafrol. You find the moles that you started with by dividing the grams by the molecular weight (but I think you knew that). Ok, now about the "stoichiometry". For every molocule of isosafrole you will get a molocule of MDMA, theoretically. so the stoichiometry is 1xisosafrole--->1xMDMA, and just about as simple as it gets. So, with 100% yeild, you would end up with as many moles of mdma as you had of isosafrol. Multiply this theoretical molar yeild by the molecular weight of MDMA to get the theoretical gram yield.
The closest I can come to an equation to give you is this:
(gIsosafrole)x(1moleIso/162.19gIso)x(229.71gMDMA*HCl/1molIso)=theoretical gram yield of MDMA
That is: (gIso)x1.4163=Theor.gMDMA*HCl
Now take the number of grams that you actually got and divide them by this number, then multiply by 100 and there is your percent yield.