We have learnt that the states of matter can be changed into another by changing the temperature, P…