Directions:- Study the following information carefully to answer the question given below.
P, Q, R, S, T and M are six students of a school, each one of them studying in a class from Class I-VI. Each of them has a favourite colour from red, black, blue, yellow, pink and green, not necessarily in the same order.
Q likes black and does not study in Class IV or V. The one who studies in class IV does not like green. P studies in class II. M likes blue and does not study in class IV. The one who likes yellow studies in class VI. S likes pink and studies in class I. R does not study in class VI.
In which class does M study?