In reaction 1, there is a change in state from solid to liquid. Hence, there is an increase in number of ways particles and their energies could be arranged. As a result, entropy increases.
In reaction 2, there is a decrease in amount of gas particles (4 mol to 2 mol). Hence there is a decrease in the number of ways particles and their energies could be arranged. As a result entropy decreases