>>14342914lol I can't tell which direction you want it (that's not the 'retrosynthesis' arrow and I don't think your prof wrote this problem, not because it's a recreational drug example, but because educated people usually try to use proper notation).
from safrole to mdma is easy: wacker oxidation followed by reductive amination with methylamine and borohydride (there are tons of conditions for this, which reducting agent, solvent, etc).
from mdma to saffrole is also easy, Hofman elimination, and yes i'm too lazy to look up whether hofman works when other (undesired) product is a styrene.