The answer to your question is 40° because freezing temp for a liquid is 32°
The molecular formula for magnesium sulfate hydrate is H14MgO11S
Magnesium (Mg) has atomic number 12 with electronic configuration :

The valence shell of Mg is 3s which has 2 electrons as shown in above electronic configuration.
Therefore, A = 3 and B =2