How do you change the thermostat in a 1997 cavalier?

Need to know if its a 2.4 L LD9 or a 2.2 L motor