It's always the same thing in chemistry: you have weight of compounds
you convert them into moles. And you write down the reaction happening, so you know the stoichiometry. That's pretty much all you need to do here.
As you said, the molecular weight of bromine is M
Br = 79.9 g/mol
For the moment you put the molecular weight of M equal to
x. You'll determine it later on. Just keep
x.
From the stoichiometry, you know how many moles of M reacted to form one mole of MBr
3. This gives you an equation containing
x which you can then calculate and you know what the element M is.