Read the following passage carefully and answer the question given below it -
J, K, L, M, N, O, P and Q are eight teacher in a school teaching in three different classes i.e. V, VI and VII with not more than three of them in any class. Each of them has a favourite color from white, black, red, yellow, pink, green, grey and silver not necessarily in the same order. M teaches in VI and does not like white and black. O teaches in V with only J who likes green. N and Q do not teach in the same department as M. L likes silver and does not teach in VII. P does not teach in VI and does not like either black or yellow. There is one teaches who teaches in VI and likes white, one who likes red and teaches in V. None of those who teaches in VI likes either yellow or pink. Q does not like black.
Which of the following combinations of teacher - class - color is correct?