The variable that should go on the x-axis is the temperature of water.
In this experiment, you are examining how the maximum mass of salt that can dissolve varies with different temperatures, making temperature the independent variable, which is typically placed on the x-axis.