Thank you for your response. I managed to crack the problem. Both ##S## and ##N## are to be kept constant. But since ##T## is not constant, I can make use of another equation to express T in terms of something else. I had already derived an expression for ##S##. The answer comes out as expected...