gate 2017 EE(Set-1) q64-solution

As there are 4 people A,G,N,S and 4 colours so without any restriction total ways have to be
$$4\times4 =16$$
$$Now, Arun \rightarrow dislikes Red and$$
$$Shweta \rightarrow dislikes white$$
$$So 16-2=14 ways$$