You should have given us a table, but I think my table shouldn't be too different.
Let's put oxidation numbers first.
![Mg^(0)(s)+Br_2^(0)(l) --> Mg^(+2)Br_2^(-2)(?)](https://img.qammunity.org/2019/formulas/chemistry/middle-school/z0j3wcdj98s2akcjfs5xg2celzmj03tqhy.png)
You would have to know that Mg(s) is a reducing agent and Br2(l) is an oxidizing agent. But it is pretty common knowledge that the halogens will tend to take the electrons and alkali and alkaline earth metals will tend to give up electrons.
Mg is oxidized because it gives up electrons; Br2(l) is reduced because it gains electrons. Since the reaction conforms to what we would expect to naturally (thermodynamically favored) occur, it can take place given that the activation energy is supplied.