pyq/2022/csat/77

There are 9 cups placed on a table arranged in equal number of rows and columns out of which 6 cups contain coffee and 3 cups contain tea. In how many ways can they be arranged so that each row should contain at least one cup of coffee?

(A) 18

(B) 27

(C) 54

(D) 81