Since the beaker was heated we can asume that only magnesium cloride is left in the beaker, therfore the difference between the beaker with magnesium chloride and the empty beaker give the mass of magnisium chloride:
[tex]\text{mass MgCl}_2=massbeakerwithMgCl_2-mass\text{ emprty beaker =37.83 g - 33.95g = 3.8}8g[/tex]